[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> translation-set-edit.php (source)

   1  <?php
   2  gp_title( sprintf( __( 'Edit Translation Set &lt; %s &lt; %s &lt; GlotPress', 'glotpress' ), $set->name, $project->name ) );
   3  gp_breadcrumb( array(
   4      gp_project_links_from_root( $project ),
   5      gp_link_get( $url, $locale->english_name . 'default' != $set->slug? ' '.$set->name : '' ),
   6  ) );
   7  
   8  // jQuery is required for the 'translation-set-form' template.
   9  gp_enqueue_script( 'jquery' );
  10  
  11  gp_tmpl_header();
  12  ?>
  13  <h2><?php _e( 'Edit Translation Set', 'glotpress' ); ?></h2>
  14  <form action="" method="post">
  15  <?php gp_tmpl_load( 'translation-set-form', get_defined_vars()); ?>
  16      <p>
  17          <input type="submit" name="submit" value="<?php esc_attr_e( 'Save', 'glotpress' ); ?>" id="submit" />
  18          <span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="<?php echo gp_url_project_locale( $project, $locale->slug, $set->slug ); ?>"><?php esc_attr_e( 'Cancel', 'glotpress' ); ?></a></span>
  19      </p>
  20      <?php gp_route_nonce_field( 'edit-translation-set_' . $set->id ); ?>
  21  </form>
  22  <?php gp_tmpl_footer();


Generated: Tue Jan 22 01:02:31 2019 Cross-referenced by PHPXref 0.7.1