Skip to content

Daniel back buttom#1735

Open
DanielRukwasha wants to merge 14 commits into
developmentfrom
daniel_back_buttom
Open

Daniel back buttom#1735
DanielRukwasha wants to merge 14 commits into
developmentfrom
daniel_back_buttom

Conversation

@DanielRukwasha

Copy link
Copy Markdown
Contributor

Back Button Implementation

Fixes issue #1596

  • The student search tab page and event tab did not have back button once inside the page.

Changes

  • We first create a back button at the end of the page next to the save button but replicate basic button creation but we added the javascript:window.history.back
image - we added a jinja line of code where we had a back button on the profile page to only appear the admi and the volunteer are different,

Testing

-we checked through the website using inspect, and manupilate tabs.

@BrianRamsay BrianRamsay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The buttons are no longer centered on the page at the bottom of the form.

@DanielRukwasha

Copy link
Copy Markdown
Contributor Author

The buttons are no longer centered on the page at the bottom of the form.

Resolved Back Button

@MImran2002 MImran2002 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

branch:
Image
still not centered

development:
Image

Comment thread app/templates/events/createEvent.html Outdated
<div class="w-100 m-auto">
<!--Submission buttons-->
{% if not event %}
<a href="javascript:window.history.back();" class="btn btn-secondary" btn-sm m-2> Back</a>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel this violated the separation of concern that css should not be in HTML, javascript should not be in HTML. Instead because this back button we clearly knows where it will go we can use this href="/something" for example as we know the route.

Comment thread app/templates/main/userProfile.html Outdated

{% if volunteer != g.current_user %}
<div class="text-center my-3">
<a href="javascript:window.history.back();" class="btn btn-secondary">Back</a>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here too this violated the separation of concern

Comment thread app/templates/events/createEvent.html
Comment thread app/templates/events/createEvent.html
@github-actions

Copy link
Copy Markdown

View Code Coverage

@MImran2002

Copy link
Copy Markdown
Contributor

Tell me when you guys are done and this issue as brian has commented means you also need to get his approval

@MImran2002

Copy link
Copy Markdown
Contributor

@nahom70 and @DanielRukwasha reach out to Brian so that you can get his approval and be able to merge this issue. if we don't proactively do this it becomes an outstanding PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants