#181 Changes the agenda html to display todays date as placeholder
Merged 3 years ago by pingou. Opened 4 years ago by joalon.
joalon/fedocal default-date-placeholder  into  master

file modified
+1
@@ -483,6 +483,7 @@ 

  

      return flask.render_template(

          'agenda.html',

+         now=datetime.datetime.utcnow(),

          calendar=calendarobj,

          month=month_name,

          weekdays=weekdays,

@@ -74,9 +74,9 @@ 

            {% else %}

            <input type="hidden" name="location" value="{{location}}"/>

            {% endif %}

-           <input type="text" name="day" placeholder="28" title="{{ _('Day in decimal') }}"/>

-           <input type="text" name="month" placeholder="02" title="{{ _('Month in decimal') }}"/>

-           <input type="text" name="year" placeholder="2014" title="{{ _('Year in decimal') }}"/>

+ 	  <input type="text" name="day" placeholder="{{ now.day }}" title="{{ _('Day in decimal') }}"/>

+ 	  <input type="text" name="month" placeholder="{{ now.month }}" title="{{ _('Month in decimal') }}"/>

+ 	  <input type="text" name="year" placeholder="{{  now.year }}" title="{{ _('Year in decimal') }}"/>

            <input type="submit" value="{{ _('Go') }}"/>

          </form>

          <form action="{{ url_for('update_tz') }}" id="update_tz">

Looks good!

I'm going to merge this manually to save you the rebase :)

Commit f24cf3c fixes this pull-request

Pull-Request has been merged by pingou

3 years ago