diff --git a/index/models.py b/index/models.py index f4640eb..8b4620d 100644 --- a/index/models.py +++ b/index/models.py @@ -125,6 +125,9 @@ class Petition(models.Model): ID = models.IntegerField(primary_key=True) archived = models.BooleanField(default=False) hidden = models.BooleanField(default=False) + ''' these commented sections are meant to be where recognized and resolved statuses of a Petition object would be defined. Section is not done, so if it is uncommented, site will crash''' + #recognized = models.BooleanField(default=False) + #resolved = models.BooleanField(default=False) created_date = models.DateTimeField( db_index=True, default=timezone.now @@ -169,6 +172,16 @@ def set_archived(self, bool_val): # Adds a description to the basic petitions model, with a max length # of 4000 words + '''function for setting a petition object as recognized/resolved''' + + '''def set_recognized(self, bool_val): + self.recognized = bool_val + # Senate can verify if a petition has been recognized by them''' + + '''def set_resolved(self, bool_val): + self.resolved = bool_val + # Senate can verify if a petition has been resolved by them (passed, failed, etc.)''' + def add_description(self, descript): self.description = descript return True diff --git a/index/static/petition/style.css b/index/static/petition/style.css index 40da3dc..685ded5 100644 --- a/index/static/petition/style.css +++ b/index/static/petition/style.css @@ -91,3 +91,44 @@ body { .card { min-height: 175px; } + +.headingbar{ + margin-top: 1em; + margin-bottom: 1em; +} + +.pagination > li > a +{ + background-color: white; + color: red; +} + +.pagination > li > a:focus, +.pagination > li > a:hover, +.pagination > li > span:focus, +.pagination > li > span:hover +{ + color: red; + background-color: #eee; + border-color: #ddd; +} +/* beautification for each tag in the petition */ +.Tag{ + font-weight: bold; + padding: 1mm; + color: #ffffff; + background-color: #ed1c24; + border: solid 1px #ed1c24; + box-shadow: 3px 3px 3px #505050; + border-radius: 3px; +} + +.Tag:hover{ + text-decoration: none; + font-weight: bold; + padding: 1mm; + color: #ed1c24; + background-color: #ffffff; + border: solid 1px #ffffff; + box-shadow: 3px 3px 3px #505050; +} diff --git a/index/templates/about.html b/index/templates/about.html new file mode 100644 index 0000000..9b767ff --- /dev/null +++ b/index/templates/about.html @@ -0,0 +1,71 @@ +{% extends "base.html" %} +{% block title %}About RPI Petitions{% endblock %} + +{% block content %} + +
+

About RPI Petitions

+
+ + + +
+ +

+

This version of RPI Petitions is the collaborative effort of members of the Rensselaer Center for Open Source (RCOS), RPI's Web Technologies Group, and Student Senate.

+

RPI Petitions exists for the purpose of giving all RPI students the abilty to spark change in their community.

+
+ + +

+

Curious about creating a new petition? Here are some steps to help get you started!

+
Have an Idea!
+

Search for petitions that match your concerns. If a petition for your issue already exists, sign it! This will help raise support for your cause and reach the amount of signatures needed to gain Senate support (250, as of 03/13/2015).

+
+
Write your Petition!
+

+ Create a petition if your issue hasn’t been raised. Use proper grammar and spelling, and make your description clear so that others can easily find your petition. Be sure to review our Moderation Policy (located on the right-most tab of this page) before posting. +

+

Be careful! You can't edit or delete a petition once it has been submitted.

+
+
Share your Petition!
+

Use social media to spread awareness of your issue!

+

A petition has one year to reach its threshold. If the threshold is not reached, then the petition is archived. You can still search for said petition, but you will be unable to sign it. Student Senate may elect to address a petition prior to reaching its threshold.

+
+ + +

+

The Rensselaer Union Student Senate empowers the Elections Committee and Web Technologies Group with moderating privileges on the RPI Petitions website. Petitions deemed inappropriate may be removed from the site at the discretion of these committees, for reasons including but not limited to:

+
    + +
  1. Violation of the Senate Bylaws, Union Constitution, or external laws and regulations including those set by local, regional, or federal government.
  2. +
  3. Mandating the hiring or firing of Institute personnel.
  4. +
  5. Requesting removal of an elected official without specifying good cause.
  6. +
  7. Direct personal attacks or slander.
  8. +
  9. Sharing of personal or confidential information.
  10. +
  11. Inappropriate or profane language.
  12. +
  13. Discriminatory or prejudicial content.
  14. +
  15. Redundancy with existing petitions.
  16. +
  17. Lack of clarity in the petition's goals.
  18. +
  19. Spamming of petitions.
  20. +
    +
+

Petitions out-of-scope for the Student Senate may additionally be referred to other organizations where applicable. In all cases where a petition is removed or referred, its sponsor will be notified of the reason for removal or referral.

+ +

To appeal decisions involving a petition's removal or referral, please contact Rules and Elections at rne@union.rpi.edu.

+ +

Full moderation rules may be found in Rules and Elections' official Petition and Referendum Handbook.

+
+
+
+{% endblock %} diff --git a/index/templates/all-petitions.html b/index/templates/all-petitions.html new file mode 100644 index 0000000..fcb2aae --- /dev/null +++ b/index/templates/all-petitions.html @@ -0,0 +1,102 @@ +{% extends "base.html" %} +{% block title %}View All Petitions{% endblock %} + +{% block content %} + +
+

All Petitions

+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + +
+
+
+
+
+ + +
+ +
+ + +{% if petitions.has_other_pages %} + +{% endif %} +{% endblock %} diff --git a/index/templates/all.html b/index/templates/all.html deleted file mode 100644 index 2b63ad8..0000000 --- a/index/templates/all.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends "base.html" %} -{% block title %}View All Petitions{% endblock %} - -{% block content %} - -{% endblock %} \ No newline at end of file diff --git a/index/templates/base.html b/index/templates/base.html index 31172ca..11673b4 100644 --- a/index/templates/base.html +++ b/index/templates/base.html @@ -3,10 +3,14 @@ {% block head %} {% block title %}{% endblock %} - + + + + + {% load static %} - + {% endblock %} @@ -31,7 +35,7 @@