24
24
* [ Installation] ( #installation )
25
25
* [ Usage] ( #usage )
26
26
* [ Settings] ( #settings )
27
- * [ Templates] ( #templates )
28
27
* [ Signals] ( #signals )
29
28
* [ Management Commands] ( #management-commands )
30
29
* [ Views] ( #views )
30
+ * [ Templates] ( #templates )
31
31
* [ Change Log] ( #change-log )
32
32
* [ History] ( #history )
33
33
* [ Contribute] ( #contribute )
@@ -131,7 +131,7 @@ this tag to show the number of invites remaining for a user:
131
131
132
132
You’ll then need to include eldarion-ajax:
133
133
134
- ``` javascript
134
+ ``` django
135
135
<script>require('eldarion-ajax');</script>
136
136
```
137
137
@@ -151,22 +151,6 @@ In order to enable unlimited invitations, set this to -1.
151
151
152
152
Default: 0
153
153
154
- ### Templates
155
-
156
- ` pinax-invitations ` comes with minimal template snippets that get rendered with template tags.
157
-
158
- #### _ invite_form.html
159
-
160
- A snippet that renders the invite form as well as a div to hold the contents
161
- of the response from the form AJAX submission.
162
-
163
- #### _ invited.html
164
-
165
- An unordered list of people you have invited that is linked to their profile when they join the site.
166
-
167
- #### _ invites_remaining.html
168
-
169
- Fragment displays how many invites a particular user has.
170
154
171
155
### Signals
172
156
@@ -302,6 +286,44 @@ Returns:
302
286
```
303
287
304
288
289
+ ### Templates
290
+
291
+ ` pinax-invitations ` uses minimal template snippets rendered with template tags.
292
+
293
+ Default templates are provided by the ` pinax-templates ` app in the
294
+ [ invitations] ( https://github.com/pinax/pinax-templates/tree/master/pinax/templates/templates/pinax/invitations )
295
+ section of that project.
296
+
297
+ Reference pinax-templates
298
+ [ installation instructions] ( https://github.com/pinax/pinax-templates/blob/master/README.md#installation )
299
+ to include these templates in your project.
300
+
301
+ #### Customizing Templates
302
+
303
+ Override the default ` pinax-templates ` templates by copying them into your project
304
+ subdirectory ` pinax/invitations/ ` on the template path and modifying as needed.
305
+
306
+ For example if your project doesn't use Bootstrap, copy the desired templates
307
+ then remove Bootstrap and Font Awesome class names from your copies.
308
+ Remove class references like ` class="btn btn-success" ` and ` class="icon icon-pencil" ` as well as
309
+ ` bootstrap ` from the ` {% load i18n bootstrap %} ` statement.
310
+ Since ` bootstrap ` template tags and filters are no longer loaded, you'll also need to update
311
+ ` {{ form|bootstrap }} ` to ` {{ form }} ` since the "bootstrap" filter is no longer available.
312
+
313
+ #### ` _invite_form.html `
314
+
315
+ A snippet that renders the invite form as well as a div to hold the contents
316
+ of the response from the form AJAX submission.
317
+
318
+ #### ` _invited.html `
319
+
320
+ An unordered list of people you have invited that is linked to their profile when they join the site.
321
+
322
+ #### ` _invites_remaining.html `
323
+
324
+ Fragment displays how many invites a particular user has.
325
+
326
+
305
327
## Change Log
306
328
307
329
### 6.1.1
0 commit comments