Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/misc/origin-save.html
Show All 28 Lines | |||||
<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 class="mt-3"> | ||||
You can contribute to extend the content of the Software Heritage archive by submitting an origin | 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: | save request. To do so, fill the required info in the form below: | ||||
</p> | </p> | ||||
<ul> | <ul> | ||||
<li><b>Origin 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> | ||||
</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 18 Lines | <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> | <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-origin-type">Origin type</label> | <label for="swh-input-visit-type">Visit type</label> | ||||
<select id="swh-input-origin-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 origin type must be specified</div> | <div class="invalid-feedback">The visit 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 28 Lines | |||||
</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 |