[opw-web] Add instructions to the project submit page



commit 33f75d7d06a043d0fb50b512dbef1014adb146e0
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Mar 10 15:50:54 2014 -0400

    Add instructions to the project submit page

 lang/en-gb.php                                     |   11 +++++++++++
 modules/mod_view_projects.php                      |    1 +
 skins/easterngreen/css/bootstrap.css               |    9 +++++++++
 .../html/tpl_view_projects_editor.html             |    9 +++++++++
 4 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/lang/en-gb.php b/lang/en-gb.php
index 6ef1b78..e6a0ae0 100644
--- a/lang/en-gb.php
+++ b/lang/en-gb.php
@@ -153,6 +153,17 @@ $lang_data = array(
     /* Module: view_projects */
     'submit_proposal'       => 'Submit a proposal',
     'edit_project'          => 'Edit project',
+    'how_to_submit'         => 'Please follow the ' .
+                               '<a 
href="https://wiki.gnome.org/OutreachProgramForWomen#Submit_an_Application";>' .
+                               'instructions on the program page</a> ' .
+                               'about which questions to answer in your application. ' .
+                               'We recommend editing your answers locally and pasting ' .
+                               'them in here because it can be a long process and ' .
+                               'we would not want you to risk losing changes.',
+    'attachment_notice'     => 'After you submit an initial version of your application, you will be able ' .
+                               'to upload attachments, such as your resume or any other relevant document. ' 
.
+                               'Submitting a resume is optional.',
+
     'proposal_submitted'    => 'Your proposal has been submitted successfully',
     'mentor_submitted'      => 'You have been successfully added as the project mentor',
     'mentor_removed'        => 'You are no longer the project mentor',
diff --git a/modules/mod_view_projects.php b/modules/mod_view_projects.php
index 5ce61e8..ba2a828 100644
--- a/modules/mod_view_projects.php
+++ b/modules/mod_view_projects.php
@@ -361,6 +361,7 @@ if ($action == 'editor')
         'error_message'         => isset($error_message) ? $error_message : '',
         'success_visibility'    => $skin->visibility(empty($success_message), true),
         'error_visibility'      => $skin->visibility(empty($error_message), true),
+        'new_visibility'        => $skin->visibility($project_id == 0),
         'decision_visibility'   => $skin->visibility($project_id > 0 && $can_decide),
         'subscribe_visibility'  => $skin->visibility(isset($show_subscribe)),
         'newuser_visibility'    => $skin->visibility($project_id > 0 && $user->is_admin),
diff --git a/skins/easterngreen/css/bootstrap.css b/skins/easterngreen/css/bootstrap.css
index ff5fa53..dabf83e 100644
--- a/skins/easterngreen/css/bootstrap.css
+++ b/skins/easterngreen/css/bootstrap.css
@@ -3128,6 +3128,15 @@ table th[class*="span"],
   border-color: rgba(0, 0, 0, 0.15);
 }
 
+.well.instructions {
+  padding: 15px;
+}
+
+.well.instructions p {
+  font-size: 100%;
+  margin-bottom: 0px;
+}
+
 .well-large {
   padding: 24px;
   -webkit-border-radius: 6px;
diff --git a/skins/easterngreen/html/tpl_view_projects_editor.html 
b/skins/easterngreen/html/tpl_view_projects_editor.html
index b4b92d2..f852355 100644
--- a/skins/easterngreen/html/tpl_view_projects_editor.html
+++ b/skins/easterngreen/html/tpl_view_projects_editor.html
@@ -21,6 +21,15 @@
     {{subscribe_student}}
 </div>
 
+<div class="well instructions">
+  <p>
+    {{how_to_submit}}
+  </p>
+  <p class="[[new_visibility]]">
+    {{attachment_notice}}
+  </p>
+</div>
+
 <div class="control-group">
     <label class="control-label">{{project_title}}</label>
     <div class="controls">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]