[2] | 1 | <%inherit file="/base.mako"/> |
---|
| 2 | <%namespace file="/message.mako" import="javascripts" /> |
---|
| 3 | <%def name="title()">Copy History Items</%def> |
---|
| 4 | |
---|
| 5 | ${javascripts()} |
---|
| 6 | |
---|
| 7 | %if error_msg: |
---|
| 8 | <p> |
---|
| 9 | <div class="errormessage">${error_msg}</div> |
---|
| 10 | <div style="clear: both"></div> |
---|
| 11 | </p> |
---|
| 12 | %endif |
---|
| 13 | %if done_msg: |
---|
| 14 | <p> |
---|
| 15 | <div class="donemessage">${done_msg}</div> |
---|
| 16 | <div style="clear: both"></div> |
---|
| 17 | </p> |
---|
| 18 | %endif |
---|
| 19 | <p> |
---|
| 20 | <div class="toolForm"> |
---|
| 21 | <form> |
---|
| 22 | <div style="float: left; width: 50%; padding: 0px 0px 0px 0px;"> |
---|
| 23 | <div class="toolFormTitle">Source History Items</div> |
---|
| 24 | <div class="toolFormBody"> |
---|
| 25 | %for data in source_datasets: |
---|
| 26 | <% |
---|
| 27 | checked = "" |
---|
| 28 | if data.id in source_dataset_ids: |
---|
| 29 | checked = " checked" |
---|
| 30 | %> |
---|
| 31 | <div class="form-row"><input type="checkbox" name="source_dataset_ids" value="${data.id}"${checked}/> ${data.hid}: ${data.name}</div> |
---|
| 32 | %endfor |
---|
| 33 | </div> |
---|
| 34 | </div> |
---|
| 35 | <div style="float: right; width: 50%; padding: 0px 0px 0px 0px;"> |
---|
| 36 | <div class="toolFormTitle">Target Histories</div> |
---|
| 37 | <div class="toolFormBody"> |
---|
| 38 | %for i, hist in enumerate( target_histories ): |
---|
| 39 | <% |
---|
| 40 | checked = "" |
---|
| 41 | if hist.id in target_history_ids: |
---|
| 42 | checked = " checked" |
---|
| 43 | cur_history_text = "" |
---|
| 44 | if hist == trans.get_history(): |
---|
| 45 | cur_history_text = " <strong>(current history)</strong>" |
---|
| 46 | %> |
---|
| 47 | <div class="form-row"><input type="checkbox" name="target_history_ids" value="${hist.id}"${checked}/> ${i + 1}${cur_history_text}: ${hist.name}</div> |
---|
| 48 | %endfor |
---|
| 49 | %if trans.get_user(): |
---|
| 50 | <% |
---|
| 51 | checked = "" |
---|
| 52 | if "create_new_history" in target_history_ids: |
---|
| 53 | checked = " checked" |
---|
| 54 | %> |
---|
| 55 | <br/> |
---|
| 56 | <div class="form-row"><input type="checkbox" name="target_history_ids" value="create_new_history"${checked}/>New history named: <input type="textbox" name="new_history_name" value="${new_history_name}"/></div> |
---|
| 57 | %endif |
---|
| 58 | </div> |
---|
| 59 | </div> |
---|
| 60 | <div style="clear: both"></div> |
---|
| 61 | <div class="form-row" align="center"> |
---|
| 62 | <input type="submit" class="primary-button" name="do_copy" value="Copy History Items"/> |
---|
| 63 | </div> |
---|
| 64 | </form> |
---|
| 65 | </div> |
---|
| 66 | </p> |
---|
| 67 | <div style="clear: both"></div> |
---|
| 68 | <p> |
---|
| 69 | <div class="infomessage">Select any number of source history items and any number of target histories and click "Copy History Items" to add a copy of each selected history item to each selected target history.</div> |
---|
| 70 | <div style="clear: both"></div> |
---|
| 71 | </p> |
---|