Skip to content

Commit

Permalink
💄 Replace contributionType to select menu
Browse files Browse the repository at this point in the history
  • Loading branch information
lancatlin committed Aug 22, 2022
1 parent 5e742a9 commit 361377d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion pages/edit/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,15 @@
</p>
<p>
<label>Contribution Type:
<input v-model="holder.contributionType" type="text" size="20">
<select v-model="holder.contributionType">
<option
v-for="k in contributionTypes"
:key="k"
:value="`http://schema.org/${k}`"
>
{{ k }}
</option>
</select>
</label>
</p>
<p>
Expand Down Expand Up @@ -205,6 +213,13 @@ export default {
rawJSON: '',
parseError: '',
WIDTH,
contributionTypes: [
'author',
'editor',
'publisher',
'creator',
'maintainer',
],
}),
async fetch () {
Expand Down

0 comments on commit 361377d

Please sign in to comment.