1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 06:34:40 +00:00
Files
seahub/templates/snippets/repo_create_form.html
2013-03-06 14:37:16 +08:00

28 lines
1.5 KiB
HTML

{% load i18n %}
<form id="repo-create-form" action="" method="post" class="hide">
<h3>{% trans "New Library"%}</h3>
<label>{% trans "Name"%}</label><br/>
<input id="repo-name" type="text" name="repo_name" value="" maxlength="{{max_file_name}}"/><br />
<label>{% trans "Description"%}</label><br/>
<textarea id="repo-desc" name="repo_desc"></textarea>
{% if create_shared_repo %}
<label style="display:block">{% trans "Share Permission"%}</label>
<select name="permission">
<option value="rw" selected="selected">{% trans "Read-Write"%}</option>
<option value="r">{% trans "Read-Only"%}</option>
</select>
{% endif %}
<div class="repo-create-encryption">
<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>
<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>
<input type="submit" id="repo-create-submit" value="{% trans "Submit"%}" class="submit"/>
</form>