Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing color picker in forms / calendar items #185

Closed
Yenthe666 opened this issue Jul 23, 2015 · 6 comments
Closed

Implementing color picker in forms / calendar items #185

Yenthe666 opened this issue Jul 23, 2015 · 6 comments
Labels

Comments

@Yenthe666
Copy link

Hi guys,

The module 'web_widget_color' is really great and cool. I was wondering if it would be possible to add support for (calendar) items in kanban view? There is currently nothing built that gives the ability to modify colors on calendar items and/or calendar users.
Give me some ideas / input and I will try to contribute. I personally need the ability to set colors on agenda items so I'll try to extend it in this module?

With kind regards,
Yenthe

@Yenthe666
Copy link
Author

@ah-taktik, @OSguard and @pedrobaeza could you guys give input on this please? 👍
One of the things that I already tried in the popup for calendar items:

  <div t-name="CalendarView.quick_create" class="oe_calendar_quick_create openerp">

    <div class="form-group">
        <label for='name' class='control-label'>Event summary:</label>
    <input name='name' class="form-control"/>
        <!--This will show up but will not work and no color picker is showing up. -->
        <field name='color' widget="color" class="form-control"/>
    </div>     

    <t t-if="widget._buttons">
      <div class="oe_calendar_quick_create_buttons">
        <button class="openerp oe_button oe_highlight oe_calendar_quick_create_add ">Create event</button>
        <button class="oe_button oe_form_button oe_link oe_calendar_quick_create_edit" ><span>Edit Event <![CDATA[]]></span></button>
      </div>
    </t>
  </div>

But somehow the color picker is not even showing up.

@Yenthe666
Copy link
Author

@dreispt a little ping to you too 😊

@dreispt
Copy link
Member

dreispt commented Jul 27, 2015

@Yenthe666 I'm sorry, I'm not familiar with that module.

@Yenthe666
Copy link
Author

No problem @dreispt , it was just a wild attempt! If you know anybody feel free to drop them a ping. I'd love to build this and share it with OCA / the community.

@pedrobaeza
Copy link
Member

For this, the widget should be modified for being registered in the calendar view, but it requires a bit of development.

@pedrobaeza
Copy link
Member

I close this issue until further development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants