Skip to content

Commit

Permalink
Merge pull request #11457 from mukeshcompucorp/fix-page-structure
Browse files Browse the repository at this point in the history
CRM-21599: Added missing structure in templates
  • Loading branch information
monishdeb authored Dec 28, 2017
2 parents 9272fab + 92164de commit 7db7ba6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CRM/Event/Form/SearchEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function setDefaultValues() {
* @return void
*/
public function buildQuickForm() {
$this->add('text', 'title', ts('Find'),
$this->add('text', 'title', ts('Event Name'),
array(CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event', 'title'))
);

Expand Down
20 changes: 11 additions & 9 deletions templates/CRM/Admin/Page/LocationType.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
{ts}Location types provide convenient labels to differentiate contacts' location(s). Administrators may define as many additional types as appropriate for your constituents (examples might be Main Office, School, Vacation Home...).{/ts}
</div>

<div class="crm-block crm-content-block">
{if $rows}
<div id="ltype">
{strip}
Expand All @@ -38,15 +39,15 @@
{include file="CRM/common/jsortable.tpl"}
<table id="options" class="display">
<thead>
<tr>
<th id="sortable">{ts}Name{/ts}</th>
<th>{ts}Display Name{/ts}</th>
<th>{ts}vCard{/ts}</th>
<th id="nosort">{ts}Description{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th>{ts}Default?{/ts}</th>
<th></th>
</tr>
<tr>
<th id="sortable">{ts}Name{/ts}</th>
<th>{ts}Display Name{/ts}</th>
<th>{ts}vCard{/ts}</th>
<th id="nosort">{ts}Description{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th>{ts}Default?{/ts}</th>
<th></th>
</tr>
</thead>
{foreach from=$rows item=row}
<tr id="location_type-{$row.id}" data-action="setvalue" class="{cycle values="odd-row,even-row"} {$row.class} crm-entity {if NOT $row.is_active} disabled{/if}">
Expand All @@ -72,4 +73,5 @@
{crmButton q="action=add&reset=1" id="newLocationType" icon="plus-circle"}{ts}Add Option{/ts}{/crmButton}
{crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}
</div>
</div>
{/if}
12 changes: 7 additions & 5 deletions templates/CRM/Event/Form/SearchEvent.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
<h3>{ts}Find Events{/ts}</h3>
<table class="form-layout">
<tr class="crm-event-searchevent-form-block-title">
<td>{$form.title.html|crmAddClass:twenty}
<div class="description font-italic">
{ts}Complete OR partial Event name.{/ts}
</div>
<div style="height: auto; vertical-align: bottom">{$form.eventsByDates.html}</div>
<td>
<label>{$form.title.label}</label>
{$form.title.html|crmAddClass:twenty}
<div class="description font-italic">
{ts}Complete OR partial Event name.{/ts}
</div>
<div style="height: auto; vertical-align: bottom">{$form.eventsByDates.html}</div>
</td>
<td rowspan="2"><label>{ts}Event Type{/ts}</label>
{$form.event_type_id.html}
Expand Down

0 comments on commit 7db7ba6

Please sign in to comment.