[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

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

   1  <?php
   2  gp_title( __( 'Create New Translation Set &lt; GlotPress', 'glotpress' ) );
   3  $project ? gp_breadcrumb_project( $project ) : gp_breadcrumb( array( __( 'New Translation Set', 'glotpress' ) ) );
   4  
   5  // jQuery is required for the 'translation-set-form' template.
   6  gp_enqueue_script( 'jquery' );
   7  
   8  gp_tmpl_header();
   9  ?>
  10  <h2><?php _e( 'Create New Translation Set', 'glotpress' ); ?></h2>
  11  <form action="" method="post">
  12      <?php gp_tmpl_load( 'translation-set-form', get_defined_vars() ); ?>
  13      <div class="button-group">
  14          <input class="button is-primary" type="submit" name="submit" value="<?php esc_attr_e( 'Create', 'glotpress' ); ?>" id="submit" />
  15          <a class="button is-link" href="<?php echo esc_url( gp_url_project( $project ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a>
  16      </div>
  17      <?php gp_route_nonce_field( 'add-translation-set' ); ?>
  18  </form>
  19  <?php
  20  gp_tmpl_footer();


Generated: Tue Apr 23 01:01:19 2024 Cross-referenced by PHPXref 0.7.1