[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [BP][FIX][UX] Review the detailed presentation of a calendar event
"Alvin Bauma \(@alvinBM\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a8dd07944e0f_38ab58f4c1514@gitlab-sidekiq-low-urgency-cpu-bound-v2-7f4b5767d6-8wb9w.mail> |
Alvin Bauma pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki
Commits:
125c45f8 by Alvin Bauma at 2026-08-25T19:27:18+02:00
[BP][FIX][UX] Review the detailed presentation of a calendar event
---
* [FIX][UX] Review the detailed presentation of a calendar event
---
* [FIX][UX] Review the detailed presentation of a calendar event
See merge request tikiwiki/tiki!9903
See merge request tikiwiki/tiki!11061
- - - - -
1 changed file:
- templates/calendar/view_item.tpl
Changes:
=====================================
templates/calendar/view_item.tpl
=====================================
@@ -13,8 +13,6 @@
{/if}
{if not $preview}
- {include file='calendar_header.tpl' viewlist='listEventView'}
-
<div class="float-end">
{permission name='change_events' type='calendaritem' object=$calitem.calitemId}
<a href="{service controller='calendar' action='edit_item' calitemId=$calitem.calitemId|escape}" class="btn btn-primary edit-calendar-item-btn">
@@ -232,10 +230,11 @@
{/if}
{/if}
<div class="summary">
- <span class="px-3 py-2 rounded" style="background:#{$thiscustombgcolor};color:#{$thiscustomfgcolor};">{tr}Start{/tr} - {tr}End{/tr} : <b>{$calitem.display_datetimes}</b></span>
+ <span>{tr}Start{/tr} - {tr}End{/tr} : <b>{$calitem.display_datetimes}</b></span>
</div>
- <div class="row px-3 py-2 rounded">
- <span class=" col-md-3" style="background:#{$thiscustombgcolor};color:#{$thiscustomfgcolor};">{tr}Description{/tr} : </span><p class="description col-md-6">{$calitem.parsed|default:"<em>{tr}No description{/tr}</em>"}</p>
+ <div class="my-3">
+ <b>{tr}Description{/tr}</b><br>
+ {$calitem.parsed|default:"<em>{tr}No description{/tr}</em>"}
</div>
{if !empty($trackerItems)}
<div class="row px-3 py-2">
@@ -255,45 +254,49 @@
{* custom properties *}
{if $calendar.customstatus eq 'y'}
<tr>
- <td colspan="2">
+ <th class="px-0 py-1">{tr}Status:{/tr}</th>
+ <td class="px-0 py-1">
{if $calitem.status eq "Tentative"}
- <label class="badge bg-secondary mb-1">{tr}Tentative{/tr}</label>
+ {icon name="question-circle" ititle='{tr}Tentative{/tr}' alt='{tr}Tentative{/tr}' iclass="text-warning me-1"}
+ <span class="text-warning">{tr}Tentative{/tr}</span>
{elseif $calitem.status eq "Confirmed"}
- <label class="badge bg-success mb-1">{tr}Confirmed{/tr}</label>
+ {icon name="check-circle" ititle='{tr}Confirmed{/tr}' alt='{tr}Confirmed{/tr}' iclass="text-success me-1"}
+ <span class="text-success">{tr}Confirmed{/tr}</span>
{elseif $calitem.status eq "Cancelled"}
- <label class="badge bg-danger mb-1">{tr}Cancelled{/tr}</label>
+ {icon name="status-closed" ititle='{tr}Cancelled{/tr}' alt='{tr}Cancelled{/tr}' iclass="text-danger me-1" istyle="color: red;"}
+ <span class="text-danger">{tr}Cancelled{/tr}</span>
{else}
- <label class="badge bg-info mb-1">{tr}{$calitem.status|escape}{/tr}</label>
+ <span class="text-muted">{tr}{$calitem.status|escape}{/tr}</span>
{/if}
</td>
</tr>
{/if}
{if $calendar.custompriorities eq 'y'}
<tr class="priority">
- <th style="background-color:#{$listprioritycolors[$calitem.priority]}">
+ <th class="px-0 py-1" style="background-color:#{$listprioritycolors[$calitem.priority]}">
{tr}Priority:{/tr}
</th>
- <td>{if $calitem.priority neq ''}{$calitem.priority|escape}{else}<em class="text-secondary">{tr}No priority set for this event{/tr}</em>{/if}</td>
+ <td class="px-0 py-1">{if $calitem.priority neq ''}{$calitem.priority|escape}{else}<em class="text-secondary">{tr}No priority set for this event{/tr}</em>{/if}</td>
</tr>
{/if}
{if $calendar.customcategories eq 'y'}
<tr class="category">
- <th>{tr}Classification:{/tr}</th>
- <td>{if $calitem.categoryName neq ''}{$calitem.categoryName|escape}{else}<em class="text-secondary">{tr}No classification added to this event{/tr}</em>{/if}</td>
+ <th class="px-0 py-1">{tr}Classification:{/tr}</th>
+ <td class="px-0 py-1">{if $calitem.categoryName neq ''}{$calitem.categoryName|escape}{else}<em class="text-secondary">{tr}No classification added to this event{/tr}</em>{/if}</td>
</tr>
{/if}
{if $calendar.customlocations eq 'y'}
<tr class="location">
- <th>{tr}Location:{/tr}</th>
- <td>{if $calitem.locationName neq ''}{$calitem.locationName|escape}{else}<em class="text-secondary">{tr}No location added to this event{/tr}</em>{/if}</td>
+ <th class="px-0 py-1">{tr}Location:{/tr}</th>
+ <td class="px-0 py-1">{if $calitem.locationName neq ''}{$calitem.locationName|escape}{else}<em class="text-secondary">{tr}No location added to this event{/tr}</em>{/if}</td>
</tr>
{/if}
{if $calendar.customurl eq 'y'}
<tr class="url">
- <th>{tr}Custom url:{/tr}</th>
- <td>
- {if $calitem.customurl neq ''}
- <a class="url" href="{$calitem.url}">
+ <th class="px-0 py-1">{tr}Custom url:{/tr}</th>
+ <td class="px-0 py-1">
+ {if $calitem.url neq ''}
+ <a class="url" href="{$calitem.url}" target="_blank" rel="noopener noreferrer">
{$calitem.url|escape}
</a>
{else}
@@ -304,14 +307,14 @@
{/if}
{if $calendar.customlanguages eq 'y'}
<tr class="language">
- <th>{tr}Language:{/tr}</th>
- <td>{if $calitem.lang neq ''}{$calitem.lang|langname}{else}<em class="text-secondary">{tr}No language added to this event{/tr}</em>{/if}</td>
+ <th class="px-0 py-1">{tr}Language:{/tr}</th>
+ <td class="px-0 py-1">{if $calitem.lang neq ''}{$calitem.lang|langname}{else}<em class="text-secondary">{tr}No language added to this event{/tr}</em>{/if}</td>
</tr>
{/if}
{if $calendar.customparticipants eq 'y'}
<tr class="organizers">
- <th>{tr}Organizers:{/tr}</th>
- <td>
+ <th class="px-0 py-1">{tr}Organizers:{/tr}</th>
+ <td class="px-0 py-1">
{if ! empty($calitem.organizers) && ($calitem.organizers|@count)}
<ul>
{foreach $calitem.organizers as $organizer}
@@ -325,8 +328,8 @@
</tr>
<tr class="participants">
{$participating = false}
- <th>{tr}Participants:{/tr}</th>
- <td>
+ <th class="px-0 py-1">{tr}Participants:{/tr}</th>
+ <td class="px-0 py-1">
<p>
{$emailString=""}
{if $calitem.participants|@count}
@@ -372,19 +375,4 @@
</table>
</div>
</div>
- {if not $preview}
- {permission name='change_events' type='calendaritem' object=$calitem.calitemId}
- <a href="{service controller='calendar' action='edit_item' calitemId=$calitem.calitemId|escape}" class="btn btn-primary edit-calendar-item-btn">
- {tr}Edit{/tr}
- </a>
- {/permission}
- {if $tiki_p_add_events eq 'y'}
- <a
- href="{service controller='calendar' action='edit_item' calitemId=0 copy_from=$calitem.calitemId|escape modal=1 return_url='tiki-calendar.php'}"
- class="btn btn-tinted-primary edit-calendar-item-btn cleanable-false"
- title="{tr}Create a new event based on this one{/tr}">
- {icon name='copy'} {tr}Duplicate{/tr}
- </a>
- {/if}
- {/if}
{/block}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/125c45f8ea2dbcc95e96cabc6c0670bfe2486305
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/125c45f8ea2dbcc95e96cabc6c0670bfe2486305
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs