Skip to content

Commit

Permalink
Updated lock
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jun 26, 2024
1 parent e4b099a commit 65271c7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 50 deletions.
54 changes: 10 additions & 44 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,11 @@ export class Create{{pascal_case entry_type.name}} extends SignalWatcher(LitElem
>
{{#each entry_type.fields}}
{{#if widget}}
<div>
{{#if (not (eq cardinality "vector") )}}
{{> (concat field_type.type "/" widget "/edit/render") label=(title_case field_name) field_name=field_name required=(eq cardinality "single") }}
{{else}}
{{> Vec/edit/render field_name=field_name field_type=field_type widget=widget }}
{{/if}}
</div>

{{/if}}
{{/each}}
Expand Down
2 changes: 1 addition & 1 deletion templates/app/field-types/Enum/Select/edit/render.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<sl-select name="{{snake_case field_name}}" .helpText=${msg("{{label}}{{#if required}}*{{/if}}")} {{#if required}}required{{/if}} {{#if edit}}.defaultValue=${ {{default_value}} }{{/if}}>
<sl-select name="{{snake_case field_name}}" .label=${msg("{{label}}")} {{#if required}}required{{/if}} {{#if edit}}.defaultValue=${ {{default_value}} }{{/if}}>
{{#each field_type.variants}}
<sl-option value="{{pascal_case this}}">${msg("{{title_case this}}")}</sl-option>
{{/each}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,11 @@ export class Create{{pascal_case entry_type.name}} extends SignalWatcher(LitElem
>
{{#each entry_type.fields}}
{{#if widget}}
<div>
{{#if (not (eq cardinality "vector") )}}
{{> (concat field_type.type "/" widget "/edit/render") label=(title_case field_name) field_name=field_name required=(eq cardinality "single") }}
{{else}}
{{> Vec/edit/render field_name=field_name field_type=field_type widget=widget }}
{{/if}}
</div>

{{/if}}
{{/each}}
Expand Down
2 changes: 1 addition & 1 deletion templates/zome/field-types/Enum/Select/edit/render.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<sl-select name="{{snake_case field_name}}" .helpText=${msg("{{label}}{{#if required}}*{{/if}}")} {{#if required}}required{{/if}} {{#if edit}}.defaultValue=${ {{default_value}} }{{/if}}>
<sl-select name="{{snake_case field_name}}" .label=${msg("{{label}}")} {{#if required}}required{{/if}} {{#if edit}}.defaultValue=${ {{default_value}} }{{/if}}>
{{#each field_type.variants}}
<sl-option value="{{pascal_case this}}">${msg("{{title_case this}}")}</sl-option>
{{/each}}
Expand Down

0 comments on commit 65271c7

Please sign in to comment.