Comments (2)
Part 1 Implemented - Show items count
Files changed: plans.blade.php
- Added header cell:
<th class="hidden-sm-down center"># items</th>
- added table cell:
<td class="hidden-sm-down center">{{ $plan->items->count() }}</td>
TODO:
- Show last change date of a plan and its items.
A more cpu-saving solution for the second suggestion is to always update the plan 'updated_at' field whenever an item of this plan was changed.
from cspot.
Part 2 implemented - Show name of last changer
Files changed:
- AppServiceProvider.php
Added these lines into the boot() method:
Item::updated( function ($item) {
// when a user changes an item, we
// update the 'changer' field on the parent model (plan)
$plan = Plan::find($item->plan_id);
$plan->update(['changer' => Auth::user()->first_name]);
});
- Item.php (the model)
added this line:
protected $touches = ['plan'];
from cspot.
Related Issues (20)
- Provide option to use server-based bible versions HOT 1
- Add option to show more than one verse per slide
- April Snag List of minor issues and enhancements HOT 1
- Create a sample Song database with Public Domain songs HOT 1
- May Snag List of minor issues and enhancements HOT 2
- Plan Notes: Allow users to add and edit their own notes
- 2017 list of minor issues and enhancements HOT 1
- Songs DB: Lyrics field is mandatory for the full-text search to always work
- Creating Tasks for users with due dates etc HOT 1
- Add option to use a custom image as the 'blank slide' for the presentation
- 2018 list of minor issues and enhancements HOT 1
- Feature Request - Interface localization HOT 5
- Feature Request - upgrade Laravel to latest version HOT 4
- Known vulnerability found in package 'hoek' HOT 1
- Potential security vulnerabilities in the dependencies
- Error: "The page has expired due to inactivity. Please refresh and try again." HOT 9
- Upgrade Laravel to 6.0/7.0
- 2020 list of minor bugs and enhancements
- Error: "Unparenthesized `a ? b : c ? d : e` is deprecated" in blade files after upgrading to PHP 7.4 HOT 1
- Run the Presentation View in a new Browser Window or Tab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cspot.