mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 21:42:34 +00:00
frontend: Add form to create addressbook
This commit is contained in:
@@ -108,48 +108,51 @@
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<h3>Create calendar</h3>
|
||||
<form action="/frontend/user/{{ user.id }}/calendar" method="POST">
|
||||
<label>
|
||||
href
|
||||
<input type="text" name="id" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Displayname
|
||||
<input type="text" name="displayname" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Description
|
||||
<input type="text" name="description" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Color
|
||||
<input type="color" name="color" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Subscription URL
|
||||
<input type="text" name="subscription_url" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Support VEVENT
|
||||
<input type="checkbox" name="comp_event" checked />
|
||||
</label>
|
||||
<label>
|
||||
Support VTODO
|
||||
<input type="checkbox" name="comp_todo" checked />
|
||||
</label>
|
||||
<label>
|
||||
Support VJOURNAL
|
||||
<input type="checkbox" name="comp_journal" />
|
||||
</label>
|
||||
<br>
|
||||
<button type="submit">Create</button>
|
||||
</form>
|
||||
<section>
|
||||
<h3>Create calendar</h3>
|
||||
<form action="/frontend/user/{{ user.id }}/calendar" method="POST">
|
||||
<label>
|
||||
href
|
||||
<input type="text" name="id" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Displayname
|
||||
<input type="text" name="displayname" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Description
|
||||
<input type="text" name="description" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Color
|
||||
<input type="color" name="color" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Subscription URL
|
||||
<input type="text" name="subscription_url" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Support VEVENT
|
||||
<input type="checkbox" name="comp_event" checked />
|
||||
</label>
|
||||
<label>
|
||||
Support VTODO
|
||||
<input type="checkbox" name="comp_todo" checked />
|
||||
</label>
|
||||
<label>
|
||||
Support VJOURNAL
|
||||
<input type="checkbox" name="comp_journal" />
|
||||
</label>
|
||||
<br>
|
||||
<button type="submit">Create</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
<section>
|
||||
@@ -186,6 +189,29 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<section>
|
||||
<h3>Create addressbook</h3>
|
||||
<form action="/frontend/user/{{ user.id }}/addressbook" method="POST">
|
||||
<label>
|
||||
href
|
||||
<input type="text" name="id" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Displayname
|
||||
<input type="text" name="displayname" />
|
||||
</label>
|
||||
<br>
|
||||
<label>
|
||||
Description
|
||||
<input type="text" name="description" />
|
||||
</label>
|
||||
<br>
|
||||
<button type="submit">Create</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user