oficina / fichas Public

Clone
git clone https://amadan.net/oficina/fichas

Plain git — no account needed to clone.

Download

Download this file

1<!doctype html>
2<html lang="en" dir="ltr">
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<title>Add a field · fichas mockup</title>
7<link rel="stylesheet" href="https://fichas.oficina.works/static/tokens.css">
8<link rel="stylesheet" href="https://fichas.oficina.works/static/theme.css">
9<script defer src="https://fichas.oficina.works/static/rastrillo.js"></script>
10
11<script defer src="https://fichas.oficina.works/static/select.js"></script>
12<script defer src="https://fichas.oficina.works/static/datetime.js"></script>
13
14
15<link rel="stylesheet" href="https://fichas.oficina.works/static/estilo/fonts/v1/fonts.css">
16<link rel="stylesheet" href="https://fichas.oficina.works/static/brand/brand.css">
17<link rel="stylesheet" href="proposed.css">
18
19</head>
20<body>
21<div rst-shell-sidebar>
22<a rst-skip href="#main">Skip to content</a>
23
24<details rst-shell-chrome><summary><svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><path d="M4 12h16"/><path d="M4 6h16"/><path d="M4 18h16"/></svg>Menu</summary></details>
25<aside rst-shell-rail>
26<a rst-shell-brand href="index.html"><span estilo-brand><img estilo-brand-icon src="https://fichas.oficina.works/static/brand/icon.svg" alt="">fichas</span></a>
27<nav rst-shell-nav>
28<a href="database.html" aria-current="page"><svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><path d="M16 3.128a4 4 0 0 1 0 7.744"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><circle cx="9" cy="7" r="4"/></svg> Customers</a>
29<a href="#"><svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"/></svg> Call log</a>
30<a href="#"><svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><path d="M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"/><path d="M15 18H9"/><path d="M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"/><circle cx="17" cy="18" r="2"/><circle cx="7" cy="18" r="2"/></svg> Suppliers</a>
31<a href="#"><svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><path d="M5 12h14"/><path d="M12 5v14"/></svg> New type</a>
32</nav>
33
34<div rst-shell-rail-foot><span fichas-meta>Paul · Sign out</span></div>
35</aside>
36<main rst-shell-main id="main">
37<div rst-page>
38
39<p fichas-mock-banner>Mockup — not the live app. <a href="index.html">All mockups</a> · built from rastrillo's real components; <code>fichas-*</code> attributes are proposed additions.</p>
40<header fichas-appbar>
41 <h1 fichas-appbar-title>Add a field <span>to Customers</span></h1>
42</header>
43<form method="post" action="database.html" style="max-inline-size: 40rem">
44 <div rst-field><label rst-field-label for="label">Field name</label>
45<input rst-input type="text" id="label" name="label" placeholder="e.g. Contract value" required autofocus>
46</div>
47 <fieldset rst-choice><legend>What kind of value</legend><div rst-choice-cards><label><input type="radio" name="kind" value="text" checked><span><span rst-choice-title>Text</span><span rst-choice-desc>A name, an address, a short note.</span></span></label><label><input type="radio" name="kind" value="longtext"><span><span rst-choice-title>Long text</span><span rst-choice-desc>Paragraphs.</span></span></label><label><input type="radio" name="kind" value="number"><span><span rst-choice-title>Number</span></span></label><label><input type="radio" name="kind" value="date"><span><span rst-choice-title>Date</span></span></label><label><input type="radio" name="kind" value="choice"><span><span rst-choice-title>Choice</span><span rst-choice-desc>One of a list you set — like Stage.</span></span></label><label><input type="radio" name="kind" value="link"><span><span rst-choice-title>Link to another card</span><span rst-choice-desc>A contact at this customer, a supplier for this order.</span></span></label></div></fieldset>
48 <fieldset rst-choice><legend>Can fichas check it for duplicates?</legend><div rst-choice-cards><label><input type="radio" name="tier" value="sealed" checked><span><span rst-choice-title>No — keep it private</span><span rst-choice-desc>Encrypted, readable only when a card is open. It can still be searched, sorted and grouped inside fichas. Right for almost everything.</span></span></label><label><input type="radio" name="tier" value="print"><span><span rst-choice-title>Yes — findable by exact match</span><span rst-choice-desc>fichas can spot two cards with the same value without opening them. For emails, phone numbers and domains — never for a short list of options, where the matches would give the values away.</span></span></label></div></fieldset>
49 <div rst-callout rst-tone="neutral"><span rst-callout-ic aria-hidden="true"><svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg></span><div rst-callout-body><strong>This choice is hard to change later</strong><p>Switching it re-encrypts every value already in the field. Adding a field never touches existing cards.</p></div></div>
50 <div rst-form-foot>
51 <button rst-btn="primary" type="submit">Add field</button>
52 <a rst-btn href="database.html">Cancel</a>
53</div>
54</form>
55
56</div>
57</main>
58</div>
59</body>
60</html>
61