Resources
19 |-
20 |
- 21 | Guides & Docs 22 | 23 |
- 24 | Source 25 | 26 |
- 27 | v1.5 Changelog 28 | 29 |
delete | 5 | {#for field <- [:from, :first, :last, :count]} 6 |
7 | |
21 | {/for}
22 | |||
---|---|---|---|---|
28 | 29 | | 30 |
31 | |
36 |
37 | {date_string(first, @tz_offset)}
38 | |
39 |
40 | {date_string(last, @tz_offset)}
41 | |
42 |
43 | |
47 |
{text_part(@content)}2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /lib/liv_web/components/recipient.ex: -------------------------------------------------------------------------------- 1 | defmodule LivWeb.Recipient do 2 | use Surface.Component 3 | 4 | alias Surface.Components.Form.{TextInput, Select} 5 | 6 | prop index, :integer, required: true 7 | prop type, :atom, required: true 8 | prop addr, :string, default: "" 9 | prop options, :list, default: [] 10 | 11 | defp addr_string([nil | addr]), do: addr 12 | defp addr_string([name | addr]), do: "#{name} <#{addr}>" 13 | end 14 | -------------------------------------------------------------------------------- /lib/liv_web/components/recipient.sface: -------------------------------------------------------------------------------- 1 |
{text_part(@content)}43 |
Peace of mind from prototype to production
4 | 5 | 14 |