statamic / workshop

Create and edit entries, pages, and globals on the front-end of your site without the control panel.
https://statamic.com/marketplace/addons/workshop
3 stars 2 forks source link

Can't edit Date on entries #11

Closed danielfowler closed 6 years ago

danielfowler commented 8 years ago

When I try to edit the date of an entry, it won't take. I can submit this form with changes to title and to date: the title change holds but the date change does not. This is gonna put me in a world of trouble here in a couple weeks.

{{ workshop:entry:edit collection="rehearsals" id="{ segment_5 }" attr="id:rehearsal" redirect="{ current_uri }?success=true" }}
            <div class="two columns">
              <div class="column">
                <label class="h4">Title</label>
                <input name="title" value="{{ title }}">
              </div>
              <div class="column">
                <label class="h4">Date</label>
                <input name="date" type="date" value="{{ date | format:Y-m-d }}">
              </div>
            </div>
            <button class="large green btn">Save Changes</button>
{{ /workshop:entry:edit }}
jackmcdade commented 6 years ago

Added in 1.1.3