Перейти к содержанию

Статус отчета


Рекомендуемые сообщения

Создал багтрекер для форума как на ips:

568ebd705a375_2016-01-0722-29-25-MobileG

создал страницу с базой данных и создал доп. поле с такими настройками:

568ebddbbce14_2016-01-0722-34-06.thumb.p

568ebe4b1f6af_2016-01-0722-35-41.thumb.p

При данном коде в "Пользовательский формат списка" статус отчета всегда одного цвета. Вопрос: как сделать так, чтобы цвет статуса отчета менялся в зависимости от выбранного содержимого

 

 

Ссылка на комментарий
Поделиться на другие сайты

Вопрос решен. Нашел на оф сайте. Можно закрывать.

Ссылка на комментарий
Поделиться на другие сайты

45 минут назад, Redneck сказал:

Вопрос решен. Нашел на оф сайте. Можно закрывать.

так а как решили-то? :) расскажите.

Ссылка на комментарий
Поделиться на другие сайты

17 минут назад, alexxis сказал:

так а как решили-то? :) расскажите.

https://community.invisionpower.com/topic/408545-how-to-make-ips4-bug-tracker/#comment-2541295

Получилось так:

46634643.thumb.png.e2c2414ee567021caaacd

 

Ссылка на комментарий
Поделиться на другие сайты

Redneck, :) ну в принципе то, как у вас получилось, мы можем заценить непосредственно у вас на форуме, зато вот ответ на вопрос о том, как это получилось, доступен по вашей ссылке не для всех :( 

Ссылка на комментарий
Поделиться на другие сайты

7 минут назад, alexxis сказал:

зато вот ответ на вопрос о том, как это получилось, доступен по вашей ссылке не для всех

надеюсь, что как страницу создать объяснять не надо...

Создание дополнительного поля для статуса:

676765.png.ddb21baaffb4ebe06f1fc0abc6a1f

95676.thumb.png.52c8229b1eb808bddcfb0eb8

23554.png.eac585686ec6b0458619a72b437e42

Код:

{{if ($value=='В ожидании')}}
<span class="ipsBadge ipsBadge_style5 ipsPos_right">В ожидании</span>
{{elseif ($value=='В работе')}}
<span class="ipsBadge ipsBadge_style3 ipsPos_right">В работе</span>
{{elseif ($value=='Исправлено')}}
<span class="ipsBadge ipsBadge_style4 ipsPos_right">Исправлено</span>
{{elseif ($value=='Закрыто')}}
<span class="ipsBadge ipsBadge_style6 ipsPos_right">Закрыто</span>
{{endif}}

 

Ссылка на комментарий
Поделиться на другие сайты

  • 2 недели спустя...

Не могу понять как создать этот бок? 

56a05501558dc_2016-01-216.47.17.png.4a66

Ссылка на комментарий
Поделиться на другие сайты

37 минут назад, Sipsb сказал:

Не могу понять как создать этот бок? 

56a05501558dc_2016-01-216.47.17.png.4a66

Используя "Пользовательские блоки" из приложения Страницы.

Ссылка на комментарий
Поделиться на другие сайты

10 минут назад, IAF сказал:

Используя "Пользовательские блоки" из приложения Страницы.

Надо создать свой блок, и что выбирать? Сидел всю ночь)) Так и не получилось создать БАГТРЕКЕР мать его!

56a0613bb0009_2016-01-217.38.33.thumb.pn

Ссылка на комментарий
Поделиться на другие сайты

47 минут назад, Sipsb сказал:

Надо создать свой блок, и что выбирать? Сидел всю ночь)) Так и не получилось создать БАГТРЕКЕР мать его!

HTML блок со своим кодом

Вообще на официальном форуме есть полная инструкция по созданию их трекера.

Ссылка на комментарий
Поделиться на другие сайты

В 08.01.2016 в 15:20, Redneck сказал:

Код

А зачем вы $value использовали?

Есть же $key, его удобнее использовать.

Ссылка на комментарий
Поделиться на другие сайты

Блин, я уже окончательно запутался :S ))) Кому не сложно, напишите подробную инструкцию в базе знаний.

Изменено пользователем Sipsb
Ссылка на комментарий
Поделиться на другие сайты

или ссылку на их БЗ скиньте, всяко проще будет разобраться

Ссылка на комментарий
Поделиться на другие сайты

https://community.invisionpower.com/topic/408545-how-to-make-ips4-bug-tracker/

Ссылка на комментарий
Поделиться на другие сайты

This area is available only to clients with an active Suite license. Please login with the same email and password you used to purchase your license or Community in the Cloud package.

Обидно((

Ссылка на комментарий
Поделиться на другие сайты

Напишу инструкцию сегодня

Ссылка на комментарий
Поделиться на другие сайты

Оригинал статьи:

This is step by step guide to make the same bug tracker like IPS4 Bug Tracker - FRESH Database
(i do hope you understand, i can help you with it, just send me a message)

First you need to have IP.Pages ( aka Pages ) 
Second, you need to know how to "copy & past" stuff  

Okay, so here are the steps in order - with no Categories... Going to make a database, field, and page while im writing this guide  
so if i forgot anything, just add it

STEP 1: 
Go to the application Pages then click on Databases, click on + Create New

STEP 2:

Then a popup will...pop up just click "Next"..
Now, you got a new page with 5 tabs on top: Details, Language, Options, Forums & Page

Details: 
Name: choose the name you want, Bug Tracker, Support? 
Description: add what ever you want here  
Use Categories: If you want 100% as IPS4, select, and click on the radio button: "No, store records in the database directly"- 
if you want to use categories, do not edit this, let it be: 
Yes, allow records to be stored in different categories
- chose the options you want if you chose no categories. 
Database Index: Select "Show categories"

jump over the 4 next template stuff
Template key: use either: support, bugs, bug, i use help  

Language: 
IF you want to use this as a support database, i recommend you to use: support, or bug report as Language, but it is all up to you

Options: 
Wiki style: No - do not edit
Edit own records indefinitely: Do not edit
Store revisions: Yes, do not edit
Allow searching: if you want, let it be, if not, set it on no  
Update the last action: Do not edit, if you want to edit it to your own do it But normal are: When a new comment is made only
Moderate new records: no, do not edit
Allow Comments: Yes, do not edit
Moderate new comments: No, do not edit
Allow Reviews: This is all up to how you want it, but i have it on: No, because i don't believe a review would benefit in a support tracker
Tags: up to you, i do now use this 
Field Options: 
- Sort: Record ID? Or you can choose between the ones who are listed, up to you how you want to list the records. 
- Order: If you want the last post to show on top, use: descending 9-0
- records per page: Up to you
Enable record image upload: this is like attachments, up to you  

Forums: 
If you want to add the support bugs in a forum, feel free to do so

Pages:
Database page:  LOOK STEP 6

Click SAVE at the bottom


STEP 3:
Chose the Permission: to your desire  
and click save, now, you need to go somewhere else  

STEP 4:
Below the database you just made there are a few options, one of them are Fields. click on it  

STEP 5:
A new page has come up, now click on + Create New 
Here are 2 tabs you need to edit, General Options & Display Options, we going to manage general options first:

General Options
Title: Status
Description: leave description alone
Type: use the list and find: Select Box, use this
Default Value: Add lower case the first key you have: pending. 
Content: here are  2 fields you need to fill out, click on "Add Another" 2 more times to add in total: 6 fields
Key:  pending
Value: Pending
Key:  fixed
Value: Fixed
Key:  closed
Value: Closed
And on Settings below, only add: Field Required and Allow Filtering 

Click on Display Options: 
template key: status

Show in listing template: YES
Listing View format:  Select Custom
A field, or 2 have been added below, add this code to the box(es)

{{if ($value=='Pending')}}
<span class="ipsBadge ipsBadge_style3 ipsPos_right">Pending</span>
{{elseif ($value=='Fixed')}}
<span class="ipsBadge ipsBadge_style4 ipsPos_right">Fixed</span>
{{elseif ($value=='Closed')}}
<span class="ipsBadge ipsBadge_style6 ipsPos_right">Closed</span>
{{endif}}


Show in display template: Yes
and do the same here as you did above   select: custom, add the code in the box below.

Editable when viewing a record: Set this to "yes" 
And click: Save! 

STEP 6: Now the Page steps.
Ok, go to Pages -> Pages -> Add Page -> Select: Page Builder:
Name:  you want to make a new page for this: name it bugs/bugtracker, bureports or your own name
page filename: bugtracker? 
Theme: Default Theme
Template: Single Column
Then add the meta and stuff you want
If you want to add the page to menu, do that to

Oke, select permission, and then click on SAVE

STEP 7:
Go to pages again, and click on Page Builder - the little grey box on the left side, in the middle 
Okay, so the page went up, now you are seeing the awesome page you just made, so, on the LEFT side you the Block Manager, oke, so go to: Pages -> DRAG the "Database" out on the "mid field", or the top field. 

Click now on: EDIT  - Select the database you made  
and, click "Finish Editing on the left side menu: block manager, at the bottom. 

And you are ready to go to report sum bugz, happy bugin' 


STEP 1: How to make the Status destriptions 
Okay, so, go to the support page you just made, click on this: so the block manager pops up on the left
Go on Pages, and drag: WYSIWYG Editor to the sidebar, and EDIT, add this code: 

<li class='ipsWidget ipsWidget_vertical ipsBox' data-blockID='app_cms_Wysiwyg_du7yodclq' data-blockConfig="true" data-blockTitle="WYSIWYG Editor" data-controller='core.front.widgets.block'><div class='ipsWidget_inner ipsPad'>
	<p><strong>Status Definitions</strong></p><p><span class="ipsBadge ipsBadge_style5">Pending</span> = We are still working on this report.</p><p><span class="ipsBadge ipsBadge_style4">Fixed</span> = The issue has been fixed and the resolution will be available&nbsp;in the next version.</p><p><span class="ipsBadge ipsBadge_style6">Closed</span> = Feedback or&nbsp;opinion&nbsp;better posted on our forum for discussion.&nbsp;Also for reports we cannot reproduce or&nbsp;need more information. In this case just add a comment and we will review it again.</p><p>&nbsp;</p>
</div>
</li>

and click on, Save, and then click on: Finish Editing
 

____________________________________________________________________

And you are done  fjewhhh, almost felt a sweat tear there lol... 

Live Demo: http://385.no/feilrapporter/ , http://385.no/qa/ & http://385.no/info/  

Thanks for reading, and stuff, IF you find any issues, wrong stuff, or something just reply:)

Ссылка на комментарий
Поделиться на другие сайты

6 часов назад, Sipsb сказал:

Не могу понять как создать этот бок? 

 

использовал этот плагин. вставил код 

<!--<div style="text-align: justify;">-->
<p><span class="ipsBadge ipsBadge_style5">В ожидании</span> - В ожидании Администратора форума.</p>
<p><span class="ipsBadge ipsBadge_style3">В работе</span> - Мы работаем над этим докладом.</p>
<p><span class="ipsBadge ipsBadge_style4">Исправлено</span> - Проблема была устранена.</p>
<p><span class="ipsBadge ipsBadge_style6">Закрыто</span> - Мы не можем воспроизвести данную проблему или она не относится к форуму. Возможно, нам требуется больше информации. В этом случае просто добавьте комментарий и мы обязательно рассмотрим его снова.</p><!--</div>-->

 

5 часов назад, IAF сказал:

А зачем вы $value использовали?

как в инструкции делал :) 

не могу редактировать пост... в коде лишнее надо убрать :) 

Ссылка на комментарий
Поделиться на другие сайты

  • 2 недели спустя...

Есть ли какой-то мануал на русском про эти "страницы" и "базы данных". Можно ли с помощью них сделать что-то серьезно? Можно ли это использовать в связке с php?

Ссылка на комментарий
Поделиться на другие сайты

br2988, можно сделать очень много качественных и крутых вещей. Но надо сидеть и разбираться и многое методом тыка изучается, в моем случае)

Ссылка на комментарий
Поделиться на другие сайты

@rustav, увидеть бы примеры этих качественных и крутых вещей.

Ссылка на комментарий
Поделиться на другие сайты

Не то чтобы круто, но красиво.

http://ipbmafia.ru/ips4releases/

Ссылка на комментарий
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

  • Последние посетители   0 пользователей онлайн

    • Ни одного зарегистрированного пользователя не просматривает данную страницу
×
×
  • Создать...