Beispiel #1
0
</label></dt>
		<dd>
			<?php 
echo gp_radio_buttons('filters[status]', array('current_or_waiting_or_fuzzy_or_untranslated' => __('Current/waiting/fuzzy + untranslated (All)', 'glotpress'), 'current' => __('Current only', 'glotpress'), 'old' => __('Approved, but obsoleted by another string', 'glotpress'), 'waiting' => __('Waiting approval', 'glotpress'), 'rejected' => __('Rejected', 'glotpress'), 'untranslated' => __('Without current translation', 'glotpress'), 'either' => __('Any', 'glotpress')), gp_array_get($filters, 'status', 'current_or_waiting_or_fuzzy_or_untranslated'));
?>
		</dd>
		<dd>
			<input type="checkbox" name="filters[with_comment]" value="yes" id="filters[with_comment][yes]" <?php 
gp_checked('yes' == gp_array_get($filters, 'with_comment'));
?>
><label for='filters[with_comment][yes]'><?php 
_e('With comment');
?>
</label><br />
			<input type="checkbox" name="filters[with_context]" value="yes" id="filters[with_context][yes]" <?php 
gp_checked('yes' == gp_array_get($filters, 'with_context'));
?>
><label for='filters[with_context][yes]'><?php 
_e('With context');
?>
</label>
		</dd>


		<dd><input type="submit" value="<?php 
esc_attr_e('Filter', 'glotpress');
?>
" name="filter" /></dd>
	</dl>
	<dl class="filters-expanded sort hidden clearfix">
		<dt><?php 
	<dd>
		<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;" />
		<span class="ternary"><?php 
_e('Public URL to a source file in the project. You can use <code>%file%</code> and <code>%line%</code>. Ex. <code>https://trac.example.org/browser/%file%#L%line%</code>');
?>
</span>
	</dd>

	<dt><label for="project[parent_project_id]"><?php 
_e('Parent Project');
?>
</label></dt>
	<dd><?php 
echo gp_projects_dropdown('project[parent_project_id]', $project->parent_project_id);
?>
</dd>

	<dt><label for="project[active]"><?php 
_e('Active');
?>
</label> <input type="checkbox" id="project[active]" name="project[active]" <?php 
gp_checked($project->active);
?>
 /></dt>
</dl>

<?php 
echo gp_js_focus_on('project[name]');
Beispiel #3
0
			<input type="checkbox" name="filters[with_comment]" value="yes" id="filters[with_comment][yes]" <?php 
gp_checked('yes' == gp_array_get($filters, 'with_comment'));
?>
><label for='filters[with_comment][yes]'><?php 
_e('With comment', 'glotpress');
?>
</label><br />
			<input type="checkbox" name="filters[with_context]" value="yes" id="filters[with_context][yes]" <?php 
gp_checked('yes' == gp_array_get($filters, 'with_context'));
?>
><label for='filters[with_context][yes]'><?php 
_e('With context', 'glotpress');
?>
</label><br />
			<input type="checkbox" name="filters[case_sensitive]" value="yes" id="filters[case_sensitive][yes]" <?php 
gp_checked('yes' == gp_array_get($filters, 'case_sensitive'));
?>
><label for='filters[case_sensitive][yes]'><?php 
_e('Case sensitive', 'glotpress');
?>
</label>
		</dd>
		<?php 
/**
 * Fires after the translation set filters options.
 *
 * This action is inside a DL element.
 *
 * @since 2.1.0
 */
do_action('gp_translation_set_filters_form');