Skip to content

Commit

Permalink
SAK-30113 QA Testing Poll Tool in Desktop display
Browse files Browse the repository at this point in the history
Added Bootstrap in the Add Poll screen
  • Loading branch information
alejandrogj committed Apr 18, 2016
1 parent 0edb4fa commit 3fc6d62
Showing 1 changed file with 56 additions and 46 deletions.
102 changes: 56 additions & 46 deletions polls/tool/src/webapp/templates/voteAdd.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,23 @@
</head>

<body rsf:id="scr=sakai-body">
<div class="portletBody">
<div class="portletBody container-fluid">
<h3 rsf:id="new_poll_title">Add/Edit a poll</h3>
<div rsf:id="message-for:*">
<span>Message for user here</span>
</div>
<form rsf:id="add-poll-form">

<table>
<tr>
<td><label for="pollName"><span class="reqStarInline">*</span><span rsf:id="new-poll-question-label">Question</span></label></td>
<td><input name="Question" type="text" size="50"
rsf:id="new-poll-text" id="pollName"/></td>
</tr>
<tr>
<td colspan="2"><label rsf:id="new-poll-descr-label">Additional
Instructions</label> <span rsf:id="new-poll-descr-label2">(if
applicable)</span></td>
</tr>
</table>
<div class="form-group row">
<label for="pollName" class="col-md-4 form-control-label">
<span class="reqStarInline">*</span>
<span rsf:id="new-poll-question-label">Question</span>
</label>
<div class="col-md-2">
<input name="Question" type="text" size="50" rsf:id="new-poll-text" id="pollName" />
</div>
</div>

<p>
<div class="pollEditorSmall">
<div rsf:id="newpolldescr:"><textarea name="Instructions"
Expand All @@ -64,24 +62,31 @@ <h3 rsf:id="new_poll_title">Add/Edit a poll</h3>
</div>
</p>

<table>
<tr>
<td><label for="openDate:1:date-field"><span class="reqStarInline">*</span><span rsf:id="msg=new_poll_open_label">Opening</span></label></td>
<td><input rsf:id="openDate-iso8601" type="hidden"
id="voteOpen" name="voteOpen" value="MM/DD/YYYY"
size="25" maxlength="25" />
<input type="text" id="opendate" name="opendate" />
</td>
</tr>
<tr>
<td> <label for ="closeDate:1:date-field"><span class="reqStarInline">*</span><span rsf:id="msg=new_poll_close_label">Closing Date</span></label></td>
<td><input rsf:id="closeDate-iso8601" type="hidden"
id="voteClose" name="voteClose" value="MM/DD/YYYY"
size="25" maxlength="25" />
<input type="text" id="closedate" name="closedate" />
</td>
</tr>
</table>
<div class="form-group row">
<label for="openDate:1:date-field" class="col-md-4 form-control-label">
<span class="reqStarInline">*</span>
<span rsf:id="msg=new_poll_open_label">Opening</span>
</label>
<div class="col-md-4">
<input rsf:id="openDate-iso8601" type="hidden"
id="voteOpen" name="voteOpen" value="MM/DD/YYYY"
size="25" maxlength="25" />
<input type="text" id="opendate" name="opendate"/>
</div>
</div>

<div class="form-group row">
<label for ="closeDate:1:date-field" class="col-md-4 form-control-label">
<span class="reqStarInline">*</span>
<span rsf:id="msg=new_poll_close_label">Closing Date</span>
</label>
<div class="col-md-4">
<input rsf:id="closeDate-iso8601" type="hidden"
id="voteClose" name="voteClose" value="MM/DD/YYYY"
size="25" maxlength="25" />
<input type="text" id="closedate" name="closedate"/>
</div>
</div>


<div rsf:id="option-headers:">
Expand All @@ -104,11 +109,13 @@ <h3 rsf:id="new_poll_title">Add/Edit a poll</h3>
</table>
</div>
<p><strong rsf:id="new-poll-limits">Limits:</strong></p>
<table>
<tr>
<td> <label for="min-votes-selection"><span class="reqStarInline">*</span><span rsf:id="msg=new_poll_min_limits">What is the minimum number of
Answer Options that can be selected?</span></label></td>
<td><select name="minOptions" rsf:id="min-votes" id="min-votes">
<div class="form-group row">
<label for="min-votes-selection" class="col-md-4 form-control-label">
<span class="reqStarInline">*</span>
<span rsf:id="msg=new_poll_min_limits">What is the minimum number of Answer Options that can be selected?</span>
</label>
<div class="col-md-4">
<select name="minOptions" rsf:id="min-votes" id="min-votes">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
Expand All @@ -125,13 +132,16 @@ <h3 rsf:id="new_poll_title">Add/Edit a poll</h3>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
</select></td>
</tr>
<tr>
<td><label for="max-votes-selection"><span class="reqStarInline">*</span>
<span rsf:id="msg=new_poll_max_limits">What is the maximum number of
Answer Options that can be selected?</span></label></td>
<td><select name="maxOptions" rsf:id="max-votes" id="max-votes">
</select>
</div>
</div>
<div class="form-group row">
<label for="max-votes-selection" class="col-md-4 form-control-label">
<span class="reqStarInline">*</span>
<span rsf:id="msg=new_poll_max_limits">What is the maximum number of Answer Options that can be selected?</span>
</label>
<div class="col-md-4">
<select name="maxOptions" rsf:id="max-votes" id="max-votes">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
Expand All @@ -147,9 +157,9 @@ <h3 rsf:id="new_poll_title">Add/Edit a poll</h3>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
</select></td>
</tr>
</table>
</select>
</div>
</div>

<p><strong rsf:id="poll_access_label">Access:</strong></p>
<div>
Expand Down

0 comments on commit 3fc6d62

Please sign in to comment.