Support multiline descriptions for entities
Use a textarea for editing the description and preserve linebreaks when it's displayed in the UI using a new preWrap class for this purpose.
This commit is contained in:
parent
96681bfd37
commit
37edf122a1
8 changed files with 43 additions and 36 deletions
|
@ -39,11 +39,11 @@
|
|||
>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
<textarea
|
||||
rows="1"
|
||||
:disabled="!canEdit(event)"
|
||||
v-model="event.description"
|
||||
>
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
|
@ -82,10 +82,10 @@
|
|||
>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
<textarea
|
||||
rows="1"
|
||||
v-model="newEventDescription"
|
||||
>
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
|
@ -116,7 +116,7 @@
|
|||
<td>{{ event.id }}</td>
|
||||
<td>{{ event.name }}</td>
|
||||
<td>{{ event.host }}</td>
|
||||
<td>{{ event.description }}</td>
|
||||
<td class="preWrap">{{ event.description }}</td>
|
||||
<td>{{ event.crew ? "" : "Yes"}}</td>
|
||||
<td>{{ event.slots.size ? event.slots.size : "" }}</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue