Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/misc/origin-save.html
Show All 16 Lines | |||||
{% endblock %} | {% endblock %} | ||||
{% block navbar-content %} | {% block navbar-content %} | ||||
<h4>Save code now</h4> | <h4>Save code now</h4> | ||||
{% endblock %} | {% endblock %} | ||||
{% block content %} | {% block content %} | ||||
<p class="mt-3"> | |||||
You can contribute to extend the content of the Software Heritage archive by submitting an origin | |||||
save request. To do so, fill the required info in the form below: | |||||
</p> | |||||
<form id="swh-save-origin-form" class="needs-validation" novalidate> | |||||
{% csrf_token %} | |||||
<div class="form-row"> | |||||
<div class="col-md-1"></div> | |||||
<div class="form-group col-md-2"> | |||||
<label for="swh-input-visit-type">Visit type</label> | |||||
<select id="swh-input-visit-type" class="form-control" required> | |||||
{% comment %} <option selected value="">Choose...</option> {% endcomment %} | |||||
</select> | |||||
<div class="invalid-feedback">The visit type must be specified</div> | |||||
</div> | |||||
<div class="form-group col-md-6"> | |||||
<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> | |||||
<div class="invalid-feedback">The origin url is not valid or does not reference a code repository</div> | |||||
</div> | |||||
<div class="col-md-2"> | |||||
<div class="form-group"> | |||||
<label for="swh-input-origin-save-submit">​</label> | |||||
<button type="submit" id="swh-input-origin-save-submit" class="btn btn-default btn-block">Save</button> | |||||
vlorentz: Why did you rename it from Submit to Save? Submit makes it clearer it's a request, imo | |||||
anlambertAuthorUnsubmitted Done Inline Actionsanlambert: It was a suggestion from @moranegg (see [[ https://forge.softwareheritage.org/T2324#43102 |… | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</form> | |||||
<div class="swh-processing-save-request text-center" style="display: none;"> | |||||
<img src="{% static 'img/swh-spinner.gif' %}"> | |||||
<p>Processing "save code now" request ...</p> | |||||
</div> | |||||
<div id="swh-origin-save-request-status"> | |||||
</div> | |||||
<ul class="nav nav-tabs" style="padding-left: 5px;"> | <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-create-tab" href="#swh-origin-save-requests-create">Create save request</a></li> | <li class="nav-item"><a class="nav-link active" data-toggle="tab" id="swh-origin-save-request-create-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 class="mt-3"> | <p style="margin-top: 1rem;">A "Save code now" request takes the following parameters:</p> | ||||
You can contribute to extend the content of the Software Heritage archive by submitting an origin | |||||
save request. To do so, fill the required info in the form below: | |||||
</p> | |||||
<ul> | <ul> | ||||
<li><b>Visit type:</b> the type of version control system the software origin is using. | <li><b>Visit 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> | ||||
Show All 15 Lines | <ul> | ||||
<li><b>rejected:</b> the provided origin url is blacklisted and no visit will be scheduled</li> | <li><b>rejected:</b> the provided origin url is blacklisted and no visit will be scheduled</li> | ||||
<li>put in <b>pending</b> state: a manual review will then be performed in order to determine if the | <li>put in <b>pending</b> state: a manual review will then be performed in order to determine if the | ||||
origin can be safely loaded or not into the archive</li> | origin can be safely loaded or not into the archive</li> | ||||
</ul> | </ul> | ||||
<p> | <p> | ||||
Once a save request has been accepted, you can follow its current status in the | Once a save request has been accepted, you can follow its current status in the | ||||
<a id="swh-show-origin-save-requests-list" href="#swh-origin-save-requests-list">submitted save requests list</a>. | <a id="swh-show-origin-save-requests-list" href="#swh-origin-save-requests-list">submitted save requests list</a>. | ||||
</p> | </p> | ||||
<form id="swh-save-origin-form" class="needs-validation" novalidate> | |||||
{% csrf_token %} | |||||
<div class="form-row"> | |||||
<div class="col-md-1"></div> | |||||
<div class="form-group col-md-2"> | |||||
<label for="swh-input-visit-type">Visit type</label> | |||||
<select id="swh-input-visit-type" class="form-control" required> | |||||
{% comment %} <option selected value="">Choose...</option> {% endcomment %} | |||||
</select> | |||||
<div class="invalid-feedback">The visit type must be specified</div> | |||||
</div> | |||||
<div class="form-group col-md-6"> | |||||
<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> | |||||
<div class="invalid-feedback">The origin url is not valid or does not reference a code repository</div> | |||||
</div> | |||||
<div class="col-md-2"> | |||||
<div class="form-group"> | |||||
<label for="swh-input-origin-save-submit">​</label> | |||||
<button type="submit" id="swh-input-origin-save-submit" class="btn btn-default btn-block">Submit</button> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</form> | |||||
<div class="swh-processing-save-request text-center" style="display: none;"> | |||||
<img src="{% static 'img/swh-spinner.gif' %}"> | |||||
<p>Processing "save code now" request ...</p> | |||||
</div> | |||||
<div id="swh-origin-save-request-status"> | |||||
</div> | |||||
</div> | </div> | ||||
<div id="swh-origin-save-requests-list" class="tab-pane mt-3"> | <div id="swh-origin-save-requests-list" class="tab-pane mt-3"> | ||||
<table id="swh-origin-save-requests" class="table swh-table swh-table-striped" width="100%"> | <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> | ||||
</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 |
Why did you rename it from Submit to Save? Submit makes it clearer it's a request, imo