[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> project-edit.php (source)

   1  <?php
   2  gp_title(
   3      sprintf(
   4          /* translators: %s: project name */
   5          __( 'Edit project "%s" &lt; GlotPress', 'glotpress' ),
   6          $project->name
   7      )
   8  );
   9  gp_breadcrumb_project( $project );
  10  gp_tmpl_header();
  11  ?>
  12  <h2>
  13      <?php
  14      printf(
  15          /* translators: %s: project name */
  16          __( 'Edit project "%s"', 'glotpress' ),
  17          esc_html( $project->name )
  18      );
  19      ?>
  20  </h2>
  21  <form action="" method="post">
  22      <?php gp_tmpl_load( 'project-form', get_defined_vars() ); ?>
  23  
  24      <div class="button-group">
  25          <input class="button is-primary" type="submit" name="submit" value="<?php esc_attr_e( 'Save', 'glotpress' ); ?>" id="submit" />
  26          <a class="button is-link" href="<?php echo esc_url( gp_url_project( $project ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a>
  27      </div>
  28  
  29      <?php gp_route_nonce_field( 'edit-project_' . $project->id ); ?>
  30  </form>
  31  <?php
  32  gp_tmpl_footer();


Generated: Sat Nov 23 01:01:06 2024 Cross-referenced by PHPXref 0.7.1