Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/misc/origin-save.html
Show All 26 Lines | <p class="mt-3"> | ||||
save request. To do so, fill the required info in the form below: | save request. To do so, fill the required info in the form below: | ||||
</p> | </p> | ||||
<form id="swh-save-origin-form" class="needs-validation" novalidate> | <form id="swh-save-origin-form" class="needs-validation" novalidate> | ||||
{% csrf_token %} | {% csrf_token %} | ||||
<div class="form-row"> | <div class="form-row"> | ||||
<div class="col-md-1"></div> | <div class="col-md-1"></div> | ||||
<div class="form-group col-md-2"> | <div class="form-group col-md-2"> | ||||
<label for="swh-input-visit-type">Visit type</label> | <label for="swh-input-visit-type">Origin type</label> | ||||
<select id="swh-input-visit-type" class="form-control" required> | <select id="swh-input-visit-type" class="form-control" required> | ||||
{% comment %} <option selected value="">Choose...</option> {% endcomment %} | {% comment %} <option selected value="">Choose...</option> {% endcomment %} | ||||
</select> | </select> | ||||
<div class="invalid-feedback">The visit type must be specified</div> | <div class="invalid-feedback">The origin type must be specified</div> | ||||
</div> | </div> | ||||
<div class="form-group col-md-6"> | <div class="form-group col-md-6"> | ||||
<label for="swh-input-origin-url">Origin url</label> | <label for="swh-input-origin-url">Origin url</label> | ||||
<input type="text" class="form-control" id="swh-input-origin-url" oninput="swh.save.validateSaveOriginUrl(this)" required> | <input type="text" class="form-control" id="swh-input-origin-url" oninput="swh.save.validateSaveOriginUrl(this)" required> | ||||
<div class="invalid-feedback">The origin url is not valid or does not reference a code repository</div> | <div class="invalid-feedback">The origin url is not valid or does not reference a code repository</div> | ||||
</div> | </div> | ||||
<div class="col-md-2"> | <div class="col-md-2"> | ||||
<div class="form-group"> | <div class="form-group"> | ||||
Show All 14 Lines | <ul class="nav nav-tabs" style="padding-left: 5px;"> | ||||
<li class="nav-item"><a class="nav-link active" data-toggle="tab" id="swh-origin-save-request-help-tab" href="#swh-origin-save-requests-create">Help</a></li> | <li class="nav-item"><a class="nav-link active" data-toggle="tab" id="swh-origin-save-request-help-tab" href="#swh-origin-save-requests-create">Help</a></li> | ||||
<li class="nav-item"><a class="nav-link" data-toggle="tab" id="swh-origin-save-requests-list-tab" href="#swh-origin-save-requests-list">Browse save requests</a></li> | <li class="nav-item"><a class="nav-link" data-toggle="tab" id="swh-origin-save-requests-list-tab" href="#swh-origin-save-requests-list">Browse save requests</a></li> | ||||
</ul> | </ul> | ||||
<div class="tab-content"> | <div class="tab-content"> | ||||
<div id="swh-origin-save-requests-create" class="tab-pane active"> | <div id="swh-origin-save-requests-create" class="tab-pane active"> | ||||
<p style="margin-top: 1rem;">A "Save code now" request takes the following parameters:</p> | <p style="margin-top: 1rem;">A "Save code now" request takes the following parameters:</p> | ||||
<ul> | <ul> | ||||
<li><b>Visit type:</b> the type of version control system the software origin is using. | <li><b>Origin type:</b> the type of version control system the software origin is using. | ||||
Currently, the supported types are: | Currently, the supported types are: | ||||
<ul> | <ul> | ||||
<li><code>git</code>, for origins using <a href="https://git-scm.com/">Git</a></li> | <li><code>git</code>, for origins using <a href="https://git-scm.com/">Git</a></li> | ||||
<li><code>hg</code>, for origins using <a href="https://www.mercurial-scm.org/">Mercurial</a></li> | <li><code>hg</code>, for origins using <a href="https://www.mercurial-scm.org/">Mercurial</a></li> | ||||
<li><code>svn</code>, for origins using <a href="https://subversion.apache.org/">Subversion</a></li> | <li><code>svn</code>, for origins using <a href="https://subversion.apache.org/">Subversion</a></li> | ||||
</ul> | </ul> | ||||
</li> | </li> | ||||
<li><b>Origin url:</b> the url of the remote repository for the software origin.<br/> | <li><b>Origin url:</b> the url of the remote repository for the software origin.<br/> | ||||
Show All 26 Lines | <table id="swh-origin-save-requests" class="table swh-table swh-table-striped" width="100%"> | ||||
<thead> | <thead> | ||||
<tr> | <tr> | ||||
<th data-priority="3">Date</th> | <th data-priority="3">Date</th> | ||||
<th data-priority="4">Type</th> | <th data-priority="4">Type</th> | ||||
<th data-priority="1">Url</th> | <th data-priority="1">Url</th> | ||||
<th data-priority="5">Request</th> | <th data-priority="5">Request</th> | ||||
<th data-priority="2">Status</th> | <th data-priority="2">Status</th> | ||||
<th data-priority="6">Info</th> | <th data-priority="6">Info</th> | ||||
<th data-priority="7"></th> | |||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||
</table> | </table> | ||||
<p id="swh-origin-save-request-list-error"></p> | <p id="swh-origin-save-request-list-error"></p> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<script> | <script> | ||||
swh.webapp.initPage('origin-save'); | swh.webapp.initPage('origin-save'); | ||||
swh.save.initOriginSave(); | swh.save.initOriginSave(); | ||||
</script> | </script> | ||||
{% endblock %} | {% endblock %} | ||||
No newline at end of file | No newline at end of file |