1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-17 22:47:59 +00:00
seahub/templates/snippets/repo_create_form.html

28 lines
1.5 KiB
HTML
Raw Normal View History

2012-10-27 06:11:37 +00:00
{% load i18n %}
<form id="repo-create-form" action="" method="post" class="hide">
2012-10-27 06:11:37 +00:00
<h3>{% trans "New Library"%}</h3>
<label>{% trans "Name"%}</label><br/>
2012-12-25 07:05:12 +00:00
<input id="repo-name" type="text" name="repo_name" value="" maxlength="{{max_file_name}}"/><br />
2012-10-27 06:11:37 +00:00
<label>{% trans "Description"%}</label><br/>
<textarea id="repo-desc" name="repo_desc"></textarea>
{% if create_shared_repo %}
2012-10-27 06:11:37 +00:00
<label style="display:block">{% trans "Share Permission"%}</label>
<select name="permission">
2012-10-27 06:11:37 +00:00
<option value="rw" selected="selected">{% trans "Read-Write"%}</option>
<option value="r">{% trans "Read-Only"%}</option>
</select>
{% endif %}
<div class="repo-create-encryption">
2013-03-05 08:09:34 +00:00
<label class="checkbox-label">
<span class="checkbox"><input type="checkbox" name="encryption" id="encrypt-switch" class="checkbox-orig" /></span>
<span class="checkbox-option">{% trans "Encrypt"%}</span>
</label>
2013-01-31 03:49:54 +00:00
<label>{% trans "Password"%}</label><span class="tip">{% trans "(at least 3 characters)"%}</span><br />
<input type="password" name="passwd" disabled="disabled" class="passwd input-disabled" /><br />
<label>{% trans "Password again"%}</label><br />
<input type="password" name="passwd_again" disabled="disabled" class="passwd input-disabled" />
</div>
<p class="error hide"></p>
2012-10-29 03:19:21 +00:00
<input type="submit" id="repo-create-submit" value="{% trans "Submit"%}" class="submit"/>
</form>