PythonIreland / broadgauge

Platform for managing training/workshops
Other
0 stars 12 forks source link

Workshops page needs a button to create a new workshop #11

Open gerboland opened 9 years ago

gerboland commented 9 years ago

After having logged in, I see no obvious way to create a new workshop from the Workshops page

johnmlhll commented 9 years ago

Sorcha and John working on this....

johnmlhll commented 9 years ago

org.id is key object that needs researching. Tried to find it again without success. Button code in the code-behind we tested today needs to have a different object reference or org.id modified to allow a paste into dashboard.py to work.

johnmlhll commented 9 years ago

Sorcha, I took a look again. The below three lines of code under the edit profile button should work. I haven't tested it in the v/m. b/r John

{% if user and (user.is_admin() or org.is_member(user)) %} Setup a new workshop {% endif %}

Also: org list is defined in broadgauge/broadgauge/templates/orgs/index.html

button is defined in broadgauge/broadgauge/templates/orgs/base.html

Wont be round tomorrow, good luck, if still open Ill look at it again during the week.

johnmlhll commented 9 years ago

OOOPs.... the browser likes the code, there it is again: " #Sorcha, the below three lines of code under the edit profile button should work. b/r John {% if user and (user.is_admin() or org.is_member(user)) %} Setup a new workshop {% endif %}"

johnmlhll commented 9 years ago

Code is "open brackets with a %sign then..." if user and (user.is_admin() or org.is_member(user)) %} Setup a new workshop {% endif %}

johnmlhll commented 9 years ago

""Setup a new workshop""

johnmlhll commented 9 years ago

I couldnt get pythonexpress running from the v/m, and I have other things to do now. Dunno when I will get back to it, can I be taken off this ticket please?... Thanks... John. p.s. A great day yesterdays guys, I learnt loads and will make a point to be at the next one...

saoili commented 9 years ago

Pull request 50 opened for this.