Inventory: competitor prices, as checked
Each Inventory entry can hold its plans' prices: the plan, the price, what it's per, when it was checked and where. Comparison and alternative pages, and new sections, state a competitor's price only as entered, with the month it was checked; a missing one is left out and listed as a to-do. A price checked more than six months ago is flagged on the entry and adds a to-do to every page that names the competitor. Prices go out and come back with the Inventory's YAML. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{define "content"}}{{with .Data}}{{$e := .E}}
|
||||
{{define "content"}}{{with .Data}}{{$d := .}}{{$e := .E}}
|
||||
<p><a href="/inventory">← Inventory</a></p>
|
||||
<h1>{{if $e.ID}}{{$e.Name}}{{else}}New entry{{end}}</h1>
|
||||
|
||||
@@ -45,6 +45,30 @@
|
||||
<label>Description <textarea name="description" rows="2">{{$e.Description}}</textarea></label>
|
||||
<label>Talking points <textarea name="talking_points" rows="4">{{$e.TalkingPoints}}</textarea>
|
||||
<span class="help">Partners: how you work together. Competitors: how you differ, where you win, and what not to claim.</span></label>
|
||||
<fieldset class="prices">
|
||||
<legend>Their prices</legend>
|
||||
<p class="help">As you read them on their pricing page. Pages that compare with them say only these, with the month you checked; after six months, those pages ask you to check them again. Clear a row to remove it.</p>
|
||||
{{with $d.Stale}}<p class="warn-text small">{{len .}} {{if eq (len .) 1}}price was{{else}}prices were{{end}} checked more than six months ago: look again{{with (index . 0).Source}} (<a href="{{.}}" target="_blank" rel="noopener noreferrer">their pricing page ↗</a>){{end}}.</p>{{end}}
|
||||
<div class="table-wrap"><table class="compact price-rows">
|
||||
<thead><tr><th>Plan</th><th>Price</th><th>Per</th><th>Checked</th><th>Where you read it</th></tr></thead>
|
||||
<tbody>
|
||||
{{range $e.Prices}}<tr>
|
||||
<td><input name="price_plan" value="{{.Plan}}" aria-label="Plan" placeholder="Pro"></td>
|
||||
<td><input name="price_amount" value="{{.Amount}}" aria-label="Price" placeholder="$25"></td>
|
||||
<td><input name="price_per" value="{{.Per}}" aria-label="Per" placeholder="per agent per month"></td>
|
||||
<td><input type="date" name="price_checked" value="{{.Checked}}" aria-label="Checked on"></td>
|
||||
<td><input type="url" name="price_source" value="{{.Source}}" aria-label="Where you read it" placeholder="https://…/pricing"></td>
|
||||
</tr>{{end}}
|
||||
{{range $d.Blank}}<tr>
|
||||
<td><input name="price_plan" aria-label="Plan" placeholder="Pro"></td>
|
||||
<td><input name="price_amount" aria-label="Price" placeholder="$25"></td>
|
||||
<td><input name="price_per" aria-label="Per" placeholder="per agent per month"></td>
|
||||
<td><input type="date" name="price_checked" value="{{$d.Today}}" aria-label="Checked on"></td>
|
||||
<td><input type="url" name="price_source" aria-label="Where you read it" placeholder="https://…/pricing"></td>
|
||||
</tr>{{end}}
|
||||
</tbody>
|
||||
</table></div>
|
||||
</fieldset>
|
||||
<label>Naming them in posts (competitors only)
|
||||
<select name="mention_policy">
|
||||
<option value="category" {{if ne $e.MentionPolicy "name"}}selected{{end}}>Don't name them; talk about the category</option>
|
||||
|
||||
Reference in New Issue
Block a user