This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  b86e18361e469974ba2e210c29c57759eb27f0f6 (commit)
      from  df694393d1202142112a7c048ac737cc405ea57e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=b86e18361e469974ba2e210c29c57759eb27f0f6

commit b86e18361e469974ba2e210c29c57759eb27f0f6
Author: Marc-Etienne Vargenau <[email protected]>
Date:   Mon Feb 13 14:31:52 2017 +0100

    Add <label>s

diff --git a/src/www/news/admin/index.php b/src/www/news/admin/index.php
index f17a512..ccef011 100644
--- a/src/www/news/admin/index.php
+++ b/src/www/news/admin/index.php
@@ -125,31 +125,45 @@ if ($group_id && $group_id != 
forge_get_config('news_group')) {
                $user = user_get_object(db_result($result,0,'submitted_by'));
 
                echo '
-               <strong>'._('Submitted by')._(': ').'</strong> 
'.$user->getRealName().'<br />
+               <p>
+               <strong>'._('Submitted by')._(': ').'</strong> 
'.$user->getRealName().'
                <input type="hidden" name="approve" value="y" />
                <input type="hidden" name="post_changes" value="y" />
-
-               <strong>'._('Status').'</strong><br />
-               <input type="radio" name="status" value="0" checked="checked" 
/> '._('Displayed').'<br />
-               <input type="radio" name="status" value="4" /> 
'._('Delete').'<br />
-
-               <strong>'._('Subject').'</strong><br />
-               <input type="text" name="summary" 
value="'.db_result($result,0,'summary').'" size="80" /><br />
-               
<strong>'._('Details').'</strong>'.notepad_button('document.forms.newsadminform.details').'<br
 />';
-
-               $params = array () ;
+               </p>
+
+               <p>
+               <strong>'._('Status')._(': ').'</strong><br />
+               <input type="radio" id="status_displayed" name="status" 
value="0" checked="checked" /> <label 
for="status_displayed">'._('Displayed').'</label><br />
+               <input type="radio" id="status_delete" name="status" value="4" 
/> <label for="status_delete">'._('Delete').'</label>
+               </p>
+
+               <p>
+               <label for="summary"><strong>'._('Subject')._(': 
').'</strong></label>
+               <input type="text" id="summary" name="summary" 
value="'.db_result($result,0,'summary').'" size="80" />
+               </p>
+               <p>
+               <label for="details"><strong>'._('Details')._(': 
').'</strong></label>'.notepad_button('document.forms.newsadminform.details');
+
+               $params = array();
                $params['name'] = 'details';
                $params['width'] = "600";
                $params['height'] = "300";
                $params['group'] = $group_id;
                $params['body'] = db_result($result,0,'details');
-               $params['content'] = '<textarea name="details" rows="5" 
cols="50">'.$params['body'].'</textarea>';
+               $params['content'] = '<textarea id="details" name="details" 
rows="5" cols="50">'.$params['body'].'</textarea>';
                plugin_hook_by_reference("text_editor",$params);
 
-               echo $params['content'].'<br/>';
+               echo $params['content'];
+               echo '</p>
+               <p>
+               <strong>'.sprintf(_('If this item is on the %s home page and 
you edit it, it will be removed from the home page.'), 
forge_get_config('forge_name')).'</strong></p>';
+               echo '<p>';
+               echo '<label for="ask_frontpage">'._('Check this box if you 
request frontpage publication:').'</label>';
+               echo '<input type="checkbox" id="ask_frontpage" 
name="ask_frontpage" value="1" checked="checked" />';
+               echo '</p>';
                echo '<p>
-               <strong>'.sprintf(_('If this item is on the %s home page and 
you edit it, it will be removed from the home page.'), 
forge_get_config('forge_name')).'</strong></p>
-               <input type="submit" name="submit" value="'._('Submit').'" />';
+               <input type="submit" name="submit" value="'._('Submit').'" />
+               </p>';
                echo $HTML->closeForm();
 
        } else {
diff --git a/src/www/news/submit.php b/src/www/news/submit.php
index 6246d5c..621b16c 100644
--- a/src/www/news/submit.php
+++ b/src/www/news/submit.php
@@ -149,10 +149,11 @@ if (session_loggedin()) {
                <input type="hidden" name="form_key" value="'. 
form_generate_key() .'" />
                <p><strong>'._('For project')._(': 
').$group->getPublicName().'</strong></p>
                <p>
-               <strong>'._('Subject').utils_requiredField()._(': 
').'</strong><br />
-               <input required="required" type="text" name="summary" 
value="'.$summary.'" size="80" /></p>
+               <label 
for="summary"><strong>'._('Subject').utils_requiredField()._(': 
').'</strong></label>
+               <input required="required" type="text" id="summary" 
name="summary" value="'.$summary.'" size="80" />
+               </p>
                <p>
-               <strong>'._('Details').utils_requiredField()._(': 
').'</strong>'.notepad_button('document.forms.newssubmitform.details').'</p>';
+               <label 
for="details"><strong>'._('Details').utils_requiredField()._(': 
').'</strong></label>'.notepad_button('document.forms.newssubmitform.details').'</p>';
 
        $params = array();
        $params['name'] = 'details';
@@ -160,7 +161,7 @@ if (session_loggedin()) {
        $params['height'] = "500";
        $params['body'] = $details;
        $params['group'] = $group_id;
-       $params['content'] = '<textarea required="required" name="details" 
rows="5" cols="50">'.$details.'</textarea>';
+       $params['content'] = '<textarea required="required" id="details" 
name="details" rows="5" cols="50">'.$details.'</textarea>';
        plugin_hook_by_reference("text_editor",$params);
 
        echo $params['content'].'<br />';

-----------------------------------------------------------------------

Summary of changes:
 src/www/news/admin/index.php | 44 +++++++++++++++++++++++++++++---------------
 src/www/news/submit.php      |  9 +++++----
 2 files changed, 34 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to