SimplifiedEntryExample2

From WeBWorK
Jump to: navigation, search

<style type="text/css"> .editSuggestion label {margin-right:1em;} .editSuggestion .drop {margin-left: 0.5em} .editSuggestion input.submit {margin-top: 0.5em} .editSuggestion .formSection {margin-top: 1em} .editSuggestion .tagSect {margin-top: 0.2em} .editSuggestion label.desc {width: 18em; display: block; float: left; text-align:left} .editSuggestion legend {font-weight: normal;} .editSuggestion fieldset {margin-bottom: 0.7em} </style> <form action="#" class="editSuggestion">

 <fieldset>
   <legend>Tags</legend>
<label for="description" class="desc">Description</label><input type="text" value="Finding the sum of two random integers" id="description" name="description" size="40"/>
<label for="description" class="desc">Keywords</label><input type="text" value="sum" id="description" name="description" size="40"/>
 </fieldset>


 <fieldset>
   <legend>Settings</legend>
   <label for="context" class="desc">Context</label>
   <select id="context" name="context">
     <option value="numeric">Numeric</option>
     <option value="vector">Vector</option>
   </select>
 </fieldset>
 <fieldset>
   <legend>Calculations</legend>
   <textarea rows="5" cols="80">$a = random(1,6);

$b = random(1,6); $answer = $a + $b; </textarea>

 </fieldset>
 <fieldset>
   <legend>Text of problem</legend>
   <textarea rows="10" cols="80">What is the sum of \($a\) and \($b\)? $BR

\{ans_rule(10)\} </textarea>

 </fieldset>
 <fieldset>
   <legend>Answers</legend>
   <label for="answer1" class="desc">Answer 1</label><input type="text" id="answer1" name="answer1" value="$answer"/>
<input type="submit" value="Add answer" class="submit"/>
 </fieldset>

<fieldset>
   <legend>Preview</legend>
   <label for="seed" class="desc">Preview using seed</label>
   <input type="text" value="1234" id="seed" name="seed"/>
<input type="submit" value="Preview" class="submit"/>
 </fieldset>
 <fieldset>
   <legend>Save</legend>
   <label for="add" class="desc">After save, add to set <select class="drop"><option>MathSet1</option></select></label><input type="checkbox" name="add" id="add"/>
<label for="location" class="desc">Save to file</label> <input type="radio" name="as" /> Original file
<label class="desc">.</label><input type="radio" name="as" /> New file <input type="text" id="location" name="location" size="30" value="/settest/multiPartExample.pg" />
     <input type="submit" value="Save" class="submit"/><input type="submit" value="Revert" />
 </fieldset>

</form>

follow us