[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> glossary-new.php (source)

   1  <?php
   2  gp_title( __( 'Create New Glossary &lt; GlotPress', 'glotpress' ) );
   3  gp_breadcrumb(
   4      array(
   5          gp_project_links_from_root( $project ),
   6          gp_link_get( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ), $translation_set->name ),
   7          __( 'Create Glossary', 'glotpress' ),
   8      )
   9  );
  10  gp_tmpl_header();
  11  ?>
  12  
  13  <h2><?php _e( 'Create New Glossary', 'glotpress' ); ?></h2>
  14  <form action="" method="post">
  15      <p>
  16          <label for="glossary-new-description"><?php _e( 'Description (optional)', 'glotpress' ); ?></label> <span class="ternary"><?php _e( 'can include HTML', 'glotpress' ); ?></span><br/>
  17          <textarea id="glossary-new-description" name="glossary[description]" rows="4" cols="40"></textarea>
  18      </p>
  19      <p>
  20          <input type="hidden" name="glossary[translation_set_id]" value="<?php echo esc_attr( $glossary->translation_set_id ); ?>"/>
  21          <input type="submit" name="submit" value="<?php esc_attr_e( 'Create', 'glotpress' ); ?>" id="submit" />
  22          <span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="<?php echo esc_url( gp_url_project_locale( $project, $locale->slug, $translation_set->slug ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a></span>
  23      </p>
  24      <?php gp_route_nonce_field( 'add-glossary' ); ?>
  25  </form>
  26  
  27  <?php
  28  gp_tmpl_footer();


Generated: Tue Dec 1 01:01:56 2020 Cross-referenced by PHPXref 0.7.1