Booked Scheduler Community Support
June 04, 2020, 06:41:28 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: USER EXPERIENCE Upgrade: (bug) Selector not needed when only one Schedule  (Read 128 times)
TechCoder
Hero Member
*****

Karma: 5
Posts: 1688

Need Booked API/App/Plugin? http://bit.ly/23EutBO


WWW
« on: May 21, 2020, 09:19:33 PM »

ISSUE:

When there is only one Schedule in the system (typically named 'Default'....), there really is no need to have a selector when viewing the Schedule (schedule.php).

Having it is confusing to Users, and when it says 'Default' and the only selection is 'Default', well, it just looks 'wrong'.......

FIX:

in /tpl/Schedule/schedule.tpl around line 150

change
Code:
          <label for="schedules" class="no-show">Schedule</label>
           <select id="schedules" class="form-control" style="width:auto;">
                 {foreach from=$Schedules item=schedule}
                     <option value="{$schedule->GetId()}"
                             {if $schedule->GetId() == $ScheduleId}selected="selected"{/if}>{$schedule->GetName()}</option>
                 {/foreach}
           </select>

to
Code:
 
    {if count($Schedules) > 1}
         <label for="schedules" class="no-show">Schedule</label>
         <select id="schedules" class="form-control" style="width:auto;">
             {foreach from=$Schedules item=schedule}
                 <option value="{$schedule->GetId()}"
                         {if $schedule->GetId() == $ScheduleId}selected="selected"{/if}>{$schedule->GetName()}</option>
             {/foreach}
         </select>
    {/if}
(be sure to clear the tpl_c folder after saving this mod!)

This will eliminate that 'odd' dropdown and make a much better experience for the User!

Responsive Technical Support for Booked Scheduler - https://Apps-n-Add-Ons.com/product.php?prodId=SUPPORT
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!