[ 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_html( $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"><?php printf(
  19              /* translators: 1: %file%, 2: %line%, 3: https://trac.example.org/browser/%file%#L%line% */
  20              __( 'Public URL to a source file in the project. You can use %1$s and %2$s. Ex. %3$s', 'glotpress' ),
  21              '<code>%file%</code>',
  22              '<code>%line%</code>',
  23              '<code>https://trac.example.org/browser/%file%#L%line%</code>'
  24          ); ?></span>
  25      </dd>
  26  
  27      <dt><label for="project[parent_project_id]"><?php _e( 'Parent Project', 'glotpress' ); ?></label></dt>
  28      <dd><?php echo gp_projects_dropdown( 'project[parent_project_id]', $project->parent_project_id, array(), $project->id ); ?></dd>
  29  
  30      <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>
  31  </dl>
  32  
  33  <?php echo gp_js_focus_on( 'project[name]' ); ?>


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