[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

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

   1  <dl>
   2      <dt><label for="project[name]"><?php _e( 'Name', 'glotpress' ); ?></label></dt>
   3      <dd><input type="text" name="project[name]" value="<?php echo esc_html( $project->name ); ?>" id="project[name]"></dd>
   4  
   5      <!-- TODO: make slug edit WordPress style -->
   6      <dt><label for="project[slug]"><?php _e( 'Slug', 'glotpress' ); ?></label></dt>
   7      <dd>
   8          <input type="text" name="project[slug]" value="<?php echo esc_attr( urldecode( $project->slug ) ); ?>" id="project[slug]">
   9          <small><?php _e( 'If you leave the slug empty, it will be derived from the name.', 'glotpress' ); ?></small>
  10      </dd>
  11  
  12      <dt><label for="project[description]"><?php _e( 'Description', 'glotpress' ); ?></label> <span class="ternary"><?php _e( 'can include HTML', 'glotpress' ); ?></span></dt>
  13      <dd><textarea name="project[description]" rows="4" cols="40" id="project[description]"><?php echo esc_html( $project->description ); ?></textarea></dd>
  14  
  15      <dt><label for="project[source_url_template]"><?php _e( 'Source file URL', 'glotpress' ); ?></label></dt>
  16      <dd>
  17          <input type="text" value="<?php echo esc_html( $project->source_url_template ); ?>" name="project[source_url_template]" id="project[source_url_template]" style="width: 30em;" />
  18          <span class="ternary">
  19              <?php
  20              printf(
  21                  /* translators: 1: %file%, 2: %line%, 3: https://trac.example.org/browser/%file%#L%line% */
  22                  __( 'Public URL to a source file in the project. You can use %1$s and %2$s. Ex. %3$s', 'glotpress' ),
  23                  '<code>%file%</code>',
  24                  '<code>%line%</code>',
  25                  '<code>https://trac.example.org/browser/%file%#L%line%</code>'
  26              );
  27              ?>
  28          </span>
  29      </dd>
  30  
  31      <dt><label for="project[parent_project_id]"><?php _e( 'Parent Project', 'glotpress' ); ?></label></dt>
  32      <dd><?php echo gp_projects_dropdown( 'project[parent_project_id]', $project->parent_project_id, array(), $project->id ); ?></dd>
  33  
  34      <dt><label for="project[active]"><?php _e( 'Active', 'glotpress' ); ?></label> <input type="checkbox" id="project[active]" name="project[active]" <?php gp_checked( $project->active ); ?> /></dt>
  35  </dl>
  36  
  37  <?php echo gp_js_focus_on( 'project[name]' ); ?>


Generated: Tue Dec 3 01:01:05 2024 Cross-referenced by PHPXref 0.7.1